From 92549d0271d809eca1db51fb96a900b60c5316b6 Mon Sep 17 00:00:00 2001 From: giwa Date: Thu, 17 Dec 2015 05:41:52 +0900 Subject: [PATCH] fix std import --- draft/test_svd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/draft/test_svd.py b/draft/test_svd.py index 11aae9c..0bbedac 100644 --- a/draft/test_svd.py +++ b/draft/test_svd.py @@ -1,5 +1,5 @@ import sys -from numpy import nan, mean +from numpy import nan, mean, std #To show some messages: import recsys.algorithm @@ -57,7 +57,7 @@ rmse_svd_neig.add(rating, pred_rating_svd_neig) mae_svd_neig.add(rating, pred_rating_svd_neig) - print "\rProcessed test rating %d" % i, + print "\rProcessed test rating %d" % i, sys.stdout.flush() i += 1