* Revert "Add scikit-learn as dependency for doc build (#3677)" This reverts commit308f664ade. * Revert "Add scikit-learn tests (#3674)" This reverts commitd176a0fbc8.
This commit is contained in:
committed by
GitHub
parent
8dac0d1009
commit
5a8bbb39a1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user