Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
myslak71 authored and myslak71 committed Feb 23, 2019
1 parent 51ac4ab commit aaed9ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/utils/count_percentage.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ def count_percentage(duel, algorithm):
algorithm.parameters.update({'random_state': 0})
model = algorithms[algorithm.get_name_display()](**algorithm.parameters)
model.fit(x_train, y_train)

return float(Decimal(100 * model.score(x_test, y_test)).quantize(Decimal('.001')))

0 comments on commit aaed9ab

Please sign in to comment.