Skip to content

Commit

Permalink
Merge pull request #1141 from weixuanfu/issue1139
Browse files Browse the repository at this point in the history
fix xgboost warning message issue #1139
  • Loading branch information
weixuanfu authored Dec 14, 2020
2 parents 1b013b2 + a8b3014 commit 0b444a6
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 12 deletions.
1 change: 0 additions & 1 deletion optional-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
xgboost==0.90
scikit-mdr==0.4.4
skrebate==0.3.4
torch==1.3.1
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ update-checker>=0.16
stopit>=1.1.2
pandas>=0.24.2
joblib>=0.13.2
xgboost>=0.90
xgboost>=1.1.0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def calculate_version():
'stopit>=1.1.1',
'pandas>=0.24.2',
'joblib>=0.13.2',
'xgboost>=0.90'],
'xgboost>=1.1.0'],
extras_require={
'skrebate': ['skrebate>=0.3.4'],
'mdr': ['scikit-mdr>=0.4.4'],
Expand Down
3 changes: 2 additions & 1 deletion tpot/config/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@
'learning_rate': [1e-3, 1e-2, 1e-1, 0.5, 1.],
'subsample': np.arange(0.05, 1.01, 0.05),
'min_child_weight': range(1, 21),
'nthread': [1]
'n_jobs': [1],
'verbosity': [0]
},

'sklearn.linear_model.SGDClassifier': {
Expand Down
3 changes: 2 additions & 1 deletion tpot/config/classifier_cuml.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
"min_child_weight": range(1, 21),
"alpha": [1, 10],
"tree_method": ["gpu_hist"],
"nthread": [1]
"n_jobs": [1],
"verbosity": [0]
},

# Sklearn Preprocesssors
Expand Down
7 changes: 4 additions & 3 deletions tpot/config/classifier_nn.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# estimators.

classifier_config_nn = {

'tpot.builtins.PytorchLRClassifier': {
'learning_rate': [1e-3, 1e-2, 1e-1, 0.5, 1.],
'batch_size': [4, 8, 16, 32],
Expand Down Expand Up @@ -120,7 +120,8 @@
'learning_rate': [1e-3, 1e-2, 1e-1, 0.5, 1.],
'subsample': np.arange(0.05, 1.01, 0.05),
'min_child_weight': range(1, 21),
'nthread': [1]
'n_jobs': [1],
'verbosity': [0]
},

'sklearn.linear_model.SGDClassifier': {
Expand Down Expand Up @@ -239,4 +240,4 @@
}
}
}
}
}
3 changes: 2 additions & 1 deletion tpot/config/classifier_sparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
'learning_rate': [1e-3, 1e-2, 1e-1, 0.5, 1.],
'subsample': np.arange(0.05, 1.01, 0.05),
'min_child_weight': range(1, 21),
'nthread': [1]
'n_jobs': [1],
'verbosity': [0]
}
}
3 changes: 2 additions & 1 deletion tpot/config/regressor.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@
'learning_rate': [1e-3, 1e-2, 1e-1, 0.5, 1.],
'subsample': np.arange(0.05, 1.01, 0.05),
'min_child_weight': range(1, 21),
'nthread': [1],
'n_jobs': [1],
'verbosity': [0],
'objective': ['reg:squarederror']
},

Expand Down
3 changes: 2 additions & 1 deletion tpot/config/regressor_cuml.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
"min_child_weight": range(1, 21),
"alpha": [1, 10],
"tree_method": ["gpu_hist"],
"nthread": [1],
"n_jobs": [1],
"verbosity": [0],
"objective": ["reg:squarederror"]
},

Expand Down
3 changes: 2 additions & 1 deletion tpot/config/regressor_sparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
'learning_rate': [1e-3, 1e-2, 1e-1, 0.5, 1.],
'subsample': np.arange(0.05, 1.01, 0.05),
'min_child_weight': range(1, 21),
'nthread': [1],
'n_jobs': [1],
'verbosity': [0],
'objective': ['reg:squarederror']
}}

0 comments on commit 0b444a6

Please sign in to comment.