Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up catboost fit: change catboost default and automl parameter ranges #998

Merged
merged 5 commits into from Jul 31, 2020
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/source/release_notes.rst
Expand Up @@ -9,6 +9,7 @@ Release Notes
* Added `_compute_shap_values` and `normalize_values` to `pipelines/explanations` module :pr:`958`
* Added `_explain_prediction` feature which explains single predictions with SHAP :pr:`974`
* Added support for configuring logfile path using env var, and don't create logger if there are filesystem errors :pr:`975`
* Updated catboost estimators' default parameters and automl hyperparameter ranges to speed up fit time :pr:`998`
* Fixes
* Fixed ReadtheDocs warning failure regarding embedded gif :pr:`943`
* Removed incorrect parameter passed to pipeline classes in `_add_baseline_pipelines` :pr:`941`
Expand Down
Expand Up @@ -20,7 +20,7 @@ class CatBoostClassifier(Estimator):
"""
name = "CatBoost Classifier"
hyperparameter_ranges = {
"n_estimators": Integer(10, 1000),
"n_estimators": Integer(4, 100),
"eta": Real(0.000001, 1),
"max_depth": Integer(4, 10),
}
Expand All @@ -30,7 +30,7 @@ class CatBoostClassifier(Estimator):
SEED_MIN = 0
SEED_MAX = SEED_BOUNDS.max_bound

def __init__(self, n_estimators=1000, eta=0.03, max_depth=6, bootstrap_type=None, random_state=0, **kwargs):
def __init__(self, n_estimators=10, eta=0.03, max_depth=6, bootstrap_type=None, random_state=0, **kwargs):
random_seed = get_random_seed(random_state, self.SEED_MIN, self.SEED_MAX)
parameters = {"n_estimators": n_estimators,
"eta": eta,
Expand Down
Expand Up @@ -18,17 +18,17 @@ class CatBoostRegressor(Estimator):
"""
name = "CatBoost Regressor"
hyperparameter_ranges = {
"n_estimators": Integer(10, 1000),
"n_estimators": Integer(4, 100),
"eta": Real(0.000001, 1),
"max_depth": Integer(1, 16),
"max_depth": Integer(4, 10),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting to note we already had the regressor set with this range, but not the classifier.

}
model_family = ModelFamily.CATBOOST
supported_problem_types = [ProblemTypes.REGRESSION]

SEED_MIN = 0
SEED_MAX = SEED_BOUNDS.max_bound

def __init__(self, n_estimators=1000, eta=0.03, max_depth=6, bootstrap_type=None, random_state=0, **kwargs):
def __init__(self, n_estimators=10, eta=0.03, max_depth=6, bootstrap_type=None, random_state=0, **kwargs):
random_seed = get_random_seed(random_state, self.SEED_MIN, self.SEED_MAX)
parameters = {"n_estimators": n_estimators,
"eta": eta,
Expand Down