Skip to content

Commit 8da8b97

Browse files
committed
Update notebook to use preview mode of skrub
1 parent 4891670 commit 8da8b97

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

content/python_files/feature_engineering.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,7 @@ def scoring(regressor, X, y):
12231223

12241224

12251225
multioutput_predictions_rf = features_with_dropped_cols.skb.apply(
1226-
RandomForestRegressor(min_samples_leaf=30, random_state=0, n_jobs=-1),
1226+
RandomForestRegressor(min_samples_leaf=5, random_state=0, n_jobs=-1),
12271227
y=targets.skb.drop(cols=["prediction_time", "load_mw"]).skb.mark_as_y(),
12281228
).skb.set_name("random_forest")
12291229

@@ -1233,25 +1233,25 @@ def scoring(regressor, X, y):
12331233
)
12341234

12351235
# %%
1236-
plot_at_time = datetime.datetime(2025, 5, 24, 0, 0, tzinfo=datetime.timezone.utc)
1236+
plot_at_time = datetime.datetime(2021, 4, 24, 0, 0, tzinfo=datetime.timezone.utc)
12371237
historical_timedelta = datetime.timedelta(hours=24 * 5)
12381238
plot_horizon_forecast(
12391239
targets,
12401240
named_predictions_rf,
12411241
plot_at_time,
12421242
historical_timedelta,
12431243
target_column_name_pattern,
1244-
)
1244+
).skb.preview()
12451245

12461246
# %%
1247-
plot_at_time = datetime.datetime(2025, 5, 25, 0, 0, tzinfo=datetime.timezone.utc)
1247+
plot_at_time = datetime.datetime(2021, 4, 25, 0, 0, tzinfo=datetime.timezone.utc)
12481248
plot_horizon_forecast(
12491249
targets,
12501250
named_predictions_rf,
12511251
plot_at_time,
12521252
historical_timedelta,
12531253
target_column_name_pattern,
1254-
)
1254+
).skb.preview()
12551255

12561256
# %%
12571257
multioutput_cv_results_rf = multioutput_predictions_rf.skb.cross_validate(

0 commit comments

Comments
 (0)