Merge pull request #1180 from borundev/master

call to DMatrix was missing 'missing=self.missing'
This commit is contained in:
Yuan (Terry) Tang 2016-05-07 10:42:00 -04:00
commit 840481d215

View File

@ -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: