From 381892bc976638ae9fdca53344a4dcbffd1650f2 Mon Sep 17 00:00:00 2001 From: dayhaha <18800111918@163.com> Date: Thu, 29 Dec 2016 09:19:42 +0000 Subject: [PATCH] change LOG to log --- demo/recommendation/evaluate.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/demo/recommendation/evaluate.py b/demo/recommendation/evaluate.py index c96e1afc08..064c233b07 100755 --- a/demo/recommendation/evaluate.py +++ b/demo/recommendation/evaluate.py @@ -28,10 +28,10 @@ def get_best_pass(filename): filename = sys.argv[1] -LOG = get_best_pass(filename) -predict_error = math.sqrt(float(LOG[0])) / 2 +log = get_best_pass(filename) +predict_error = math.sqrt(float(log[0])) / 2 print 'Best pass is %s, error is %s, which means predict get error as %f' % ( - LOG[1], LOG[0], predict_error) + log[1], log[0], predict_error) -evaluate_pass = "output/pass-%s" % LOG[1] +evaluate_pass = "output/pass-%s" % log[1] print "evaluating from pass %s" % evaluate_pass -- GitLab