Skip to content

Commit

Permalink
Fix mse in parameter search (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug committed Nov 2, 2019
1 parent d29b255 commit 74e4f06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion surprise/model_selection/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def fit(self, data):
len(indices)) + 1 # sklearn starts rankings at 1 as well.

# set best_index, and best_xxxx attributes
if m in ('mae', 'rmse'):
if m in ('mae', 'rmse', 'mse'):
best_index[m] = mean_test_measures.argmin()
elif m in ('fcp',):
best_index[m] = mean_test_measures.argmax()
Expand Down

0 comments on commit 74e4f06

Please sign in to comment.