Skip to content

Commit

Permalink
Merge pull request #922 from flust/master
Browse files Browse the repository at this point in the history
FIX: xgboost/lightgbm bug
  • Loading branch information
2017pxy authored Aug 10, 2021
2 parents 7b96066 + 832a0f7 commit c798f3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recbole/trainer/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ def evaluate(self, eval_data, load_best_model=True, model_file=None, show_progre
self.eval_true = torch.Tensor(self.deval.get_label())
self.eval_pred = torch.Tensor(self.model.predict(self.deval))

self.eval_collector.eval_collect(self.eval_pred, self.eval_pred)
self.eval_collector.eval_collect(self.eval_pred, self.eval_true)
result = self.evaluator.evaluate(self.eval_collector.get_data_struct())
return result

Expand Down Expand Up @@ -964,7 +964,7 @@ def evaluate(self, eval_data, load_best_model=True, model_file=None, show_progre
self.eval_true = torch.Tensor(self.deval_label)
self.eval_pred = torch.Tensor(self.model.predict(self.deval_data))

self.eval_collector.eval_collect(self.eval_pred, self.eval_pred)
self.eval_collector.eval_collect(self.eval_pred, self.eval_true)
result = self.evaluator.evaluate(self.eval_collector.get_data_struct())
return result

Expand Down

0 comments on commit c798f3a

Please sign in to comment.