Merge pull request #1180 from borundev/master
call to DMatrix was missing 'missing=self.missing'
This commit is contained in:
commit
840481d215
@ -222,7 +222,7 @@ class XGBModel(XGBModelBase):
|
||||
|
||||
evals_result = {}
|
||||
if eval_set is not None:
|
||||
evals = list(DMatrix(x[0], label=x[1]) for x in eval_set)
|
||||
evals = list(DMatrix(x[0], label=x[1], missing=self.missing) for x in eval_set)
|
||||
evals = list(zip(evals, ["validation_{}".format(i) for i in
|
||||
range(len(evals))]))
|
||||
else:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user