Skip to content

Commit

Permalink
add multitask regressors to Lazy*Classifier Pt.2
Browse files Browse the repository at this point in the history
  • Loading branch information
thierrymoudiki committed Oct 9, 2024
1 parent ddc5350 commit afe21c4
Show file tree
Hide file tree
Showing 4 changed files with 481 additions and 242 deletions.
2 changes: 1 addition & 1 deletion examples/lazy_booster_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

X_train, X_test, y_train, y_test = train_test_split(X, y, test_size = .2, random_state = 13)

clf = ms.LazyBoostingClassifier(verbose=0, ignore_warnings=True,
clf = ms.LazyBoostingClassifier(verbose=0, ignore_warnings=True, #n_jobs=2,
custom_metric=None, preprocess=False)

start = time()
Expand Down
2 changes: 1 addition & 1 deletion examples/lazy_booster_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
y= data.target
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size = .2, random_state = 123)

regr = ms.LazyBoostingRegressor(verbose=0, ignore_warnings=True,
regr = ms.LazyBoostingRegressor(verbose=0, ignore_warnings=True, n_jobs=2,
custom_metric=None, preprocess=True)
models, predictioms = regr.fit(X_train, X_test, y_train, y_test)
model_dictionary = regr.provide_models(X_train, X_test, y_train, y_test)
Expand Down
Loading

0 comments on commit afe21c4

Please sign in to comment.