Skip to content

Commit

Permalink
fix minor bug in print_metrics for sklearn binary classifier
Browse files Browse the repository at this point in the history
  • Loading branch information
jfischer committed Apr 23, 2020
1 parent 7b15362 commit cacc9cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataworkspaces/kits/scikit_learn.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def score(self) -> float:
return self.accuracy

def print_metrics(self, file=sys.stdout) -> None:
for k, v in self.to_dict():
for k, v in self.to_dict().items():
print("%13s: %.02f" % (k, cast(Union[int, float], v)), file=file)


Expand Down

0 comments on commit cacc9cf

Please sign in to comment.