Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a79cf4b

Browse files
committed
Fixed call to print_table -- use 'numfmt' not 'round'.
1 parent b31d72a commit a79cf4b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

learning.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,5 +582,4 @@ def compare(algorithms=[MajorityLearner, NaiveBayesLearner,
582582
print_table([[a.__name__.replace('Learner','')] +
583583
[cross_validation(a(), d, k, trials) for d in datasets]
584584
for a in algorithms],
585-
header=[''] + [d.name[0:7] for d in datasets], round=2)
586-
585+
header=[''] + [d.name[0:7] for d in datasets], numfmt='%.2f')

0 commit comments

Comments
 (0)