Skip to content

Commit

Permalink
rm xgboost
Browse files Browse the repository at this point in the history
  • Loading branch information
ardunn committed Jul 28, 2020
1 parent 2df6abe commit 64767f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions automatminer/presets.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from automatminer.featurization import AutoFeaturizer
from automatminer.preprocessing import DataCleaner, FeatureReducer
from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor
from xgboost import XGBClassifier, XGBRegressor
# from xgboost import XGBClassifier, XGBRegressor


def get_preset_config(preset: str = "express", **powerups) -> dict:
Expand Down Expand Up @@ -85,11 +85,11 @@ def get_preset_config(preset: str = "express", **powerups) -> dict:
"cleaner": DataCleaner(),
}
elif preset == "express_single":
xgb_kwargs = {"n_estimators": 300, "max_depth": 3, "n_jobs": n_jobs_kwargs}
rf_args = {"n_estimators": 500, "max_depth": 5, "n_jobs": n_jobs_kwargs}
config = {
"learner": SinglePipelineAdaptor(
regressor=XGBRegressor(**xgb_kwargs),
classifier=XGBClassifier(**xgb_kwargs),
regressor=RandomForestRegressor(**rf_args),
classifier=RandomForestClassifier(**rf_args),
),
"reducer": FeatureReducer(reducers=("corr",)),
"autofeaturizer": AutoFeaturizer(
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Direct requirements of this project alone
matminer==0.6.2
pymatgen==2020.01.28
xgboost==0.80
tpot==0.11.0
skrebate==0.6
pyyaml==5.1.2
Expand Down

0 comments on commit 64767f4

Please sign in to comment.