* Revert "Add scikit-learn as dependency for doc build (#3677)"

This reverts commit 308f664ade.

* Revert "Add scikit-learn tests (#3674)"

This reverts commit d176a0fbc8.
This commit is contained in:
Philip Hyunsu Cho
2018-09-06 20:43:17 -07:00
committed by GitHub
parent 8dac0d1009
commit 5a8bbb39a1
5 changed files with 5 additions and 36 deletions

View File

@@ -203,18 +203,6 @@ def train(params, dtrain, num_boost_round=10, evals=(), obj=None, feval=None,
DeprecationWarning)
callbacks.append(callback.reset_learning_rate(learning_rates))
nrow = dtrain.num_row()
ncol = dtrain.num_col()
if nrow <= 0:
raise ValueError('{} row(s) (shape=({}, {})) while a minimum of 1 is required.'
.format(nrow, nrow, ncol))
if ncol <= 0:
raise ValueError('{} feature(s) (shape=({}, {})) while a minimum of 1 is required.'
.format(ncol, nrow, ncol))
label = dtrain.get_label()
if nrow != len(label):
raise ValueError('Label must have same length as the number of data rows')
return _train_internal(params, dtrain,
num_boost_round=num_boost_round,
evals=evals,