Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions python_scripts/ensemble_hist_gradient_boosting.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
data,
target,
scoring="neg_mean_absolute_error",
n_jobs=2,
# n_jobs=2, # Uncomment this line if you run locally
)

# %%
Expand Down Expand Up @@ -122,7 +122,7 @@
data,
target,
scoring="neg_mean_absolute_error",
n_jobs=2,
# n_jobs=2, # Uncomment this line if you run locally
)

# %%
Expand Down Expand Up @@ -161,7 +161,7 @@
data,
target,
scoring="neg_mean_absolute_error",
n_jobs=2,
# n_jobs=2, # Uncomment this line if you run locally
)

# %%
Expand Down
4 changes: 2 additions & 2 deletions python_scripts/ensemble_hyperparameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
scoring="neg_mean_absolute_error",
n_iter=10,
random_state=0,
n_jobs=2,
# n_jobs=2, # Uncomment this line if you run locally
)
search_cv.fit(data_train, target_train)

Expand Down Expand Up @@ -184,7 +184,7 @@
scoring="neg_mean_absolute_error",
n_iter=20,
random_state=0,
n_jobs=2,
# n_jobs=2, # Uncomment this line if you run locally
)
search_cv.fit(data_train, target_train)

Expand Down
7 changes: 6 additions & 1 deletion python_scripts/ensemble_sol_04.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@

cv = KFold(n_splits=5, shuffle=True, random_state=0)
results = cross_validate(
search, data, target, cv=cv, return_estimator=True, n_jobs=2
search,
data,
target,
cv=cv,
return_estimator=True,
# n_jobs=2 # Uncomment this if you run locally
)

# %% [markdown]
Expand Down