Skip to content

Commit 53be026

Browse files
committed
make models smaller
1 parent 2f33042 commit 53be026

3 files changed

Lines changed: 7 additions & 9 deletions

File tree

content/python_files/computational_performance.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
from imblearn.ensemble import BalancedRandomForestClassifier
2525

2626
random_forest = tabular_pipeline(
27-
RandomForestClassifier(n_estimators=100, n_jobs=-1, random_state=0)
27+
RandomForestClassifier(n_estimators=80, n_jobs=-1, random_state=0)
2828
)
2929
balanced_random_forest = tabular_pipeline(
30-
BalancedRandomForestClassifier(n_estimators=100, n_jobs=-1, random_state=0)
30+
BalancedRandomForestClassifier(n_estimators=80, n_jobs=-1, random_state=0)
3131
)
3232

3333
# %%
@@ -51,17 +51,15 @@
5151
scoring="neg_log_loss",
5252
)
5353

54-
# # %%
54+
# %%
5555
# from skore import CrossValidationReport
56-
57-
# report_rf = CrossValidationReport(random_forest_gs, X, y)
58-
# report_brf = CrossValidationReport(balanced_random_forest_gs, X, y)
59-
60-
61-
# # %%
6256
# import joblib
6357

58+
# report_rf = CrossValidationReport(random_forest_gs, X, y)
6459
# joblib.dump(report_rf, "report_rf.joblib")
60+
61+
# %%
62+
# report_brf = CrossValidationReport(balanced_random_forest_gs, X, y)
6563
# joblib.dump(report_brf, "report_brf.joblib")
6664

6765
# %%
-2.58 MB
Binary file not shown.
-2.62 MB
Binary file not shown.

0 commit comments

Comments
 (0)