Skip to content

Commit 381892b

Browse files
committed
change LOG to log
1 parent 7e769ac commit 381892b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

demo/recommendation/evaluate.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ def get_best_pass(filename):
2828

2929

3030
filename = sys.argv[1]
31-
LOG = get_best_pass(filename)
32-
predict_error = math.sqrt(float(LOG[0])) / 2
31+
log = get_best_pass(filename)
32+
predict_error = math.sqrt(float(log[0])) / 2
3333
print 'Best pass is %s, error is %s, which means predict get error as %f' % (
34-
LOG[1], LOG[0], predict_error)
34+
log[1], log[0], predict_error)
3535

36-
evaluate_pass = "output/pass-%s" % LOG[1]
36+
evaluate_pass = "output/pass-%s" % log[1]
3737
print "evaluating from pass %s" % evaluate_pass

0 commit comments

Comments
 (0)