Skip to content

Commit

Permalink
fixes #432 add precision to runtimes in results.csv
Browse files Browse the repository at this point in the history
  • Loading branch information
ledell authored and Sebastien Poirier committed Dec 15, 2021
1 parent c9dd39b commit 90630a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amlb/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def as_printable_data_frame(self, verbosity=3):
for col in nanable_int_cols:
df[col] = df[col].astype(np.object).map(int_print).astype(np.str)
for col in low_precision_float_cols:
df[col] = df[col].astype(np.float).map(partial(num_print, "{:.1f}".format)).astype(np.float)
df[col] = df[col].astype(np.float).map(partial(num_print, "{:.3g}".format)).astype(np.float)
for col in high_precision_float_cols:
df[col] = df[col].map(partial(num_print, "{:.6g}".format)).astype(np.float)

Expand Down

0 comments on commit 90630a8

Please sign in to comment.