Skip to content

Commit

Permalink
GH-15809: minor aic retrieval fix
Browse files Browse the repository at this point in the history
  • Loading branch information
syzonyuliia-h2o committed Jan 22, 2024
1 parent b1d9b70 commit 7b4bebf
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 @@ -151,7 +151,7 @@ def _str_items(self, verbosity=None):
"Null deviance: {}".format(self.null_deviance()),
"Residual deviance: {}".format(self.residual_deviance()),
])
if is_type(self.aic(), numeric) and self.loglikelihood() != 0:
if is_type(self.aic(), numeric) and self.aic() != 0:
items.append("AIC: {}".format(self.aic()))
if is_type(self.loglikelihood(), numeric) and self.loglikelihood() != 0:
items.append("Loglikelihood: {}".format(self.loglikelihood()))
Expand Down

0 comments on commit 7b4bebf

Please sign in to comment.