Remove duplicated DMatrix. (#6592)
This commit is contained in:
@@ -653,12 +653,6 @@ class XGBModel(XGBModelBase):
|
||||
save_best=True)]
|
||||
|
||||
"""
|
||||
train_dmatrix = DMatrix(data=X, label=y, weight=sample_weight,
|
||||
base_margin=base_margin,
|
||||
missing=self.missing,
|
||||
nthread=self.n_jobs)
|
||||
train_dmatrix.set_info(feature_weights=feature_weights)
|
||||
|
||||
evals_result = {}
|
||||
|
||||
train_dmatrix, evals = self._wrap_evaluation_matrices(
|
||||
|
||||
Reference in New Issue
Block a user