Skip to content

Commit

Permalink
GH-15809: fix aic check in test
Browse files Browse the repository at this point in the history
  • Loading branch information
syzonyuliia-h2o authored and wendycwong committed Feb 5, 2024
1 parent 607f0fa commit 6c46408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h2o-py/h2o/model/metrics_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def _str_items(self, verbosity=None):

if is_type(self.aic(), numeric) and not math.isnan(self.aic()) and self.aic() != 0:
items.append("AIC: {}".format(self.aic()))
if is_type(self.loglikelihood(), numeric) and not math.isnan(self.aic()) and self.loglikelihood() != 0:
if is_type(self.loglikelihood(), numeric) and not math.isnan(self.loglikelihood()) and self.loglikelihood() != 0:
items.append("Loglikelihood: {}".format(self.loglikelihood()))

items.extend(self._str_items_custom())
Expand Down

0 comments on commit 6c46408

Please sign in to comment.