Skip to content

Commit

Permalink
add duration to glmnet benchmark output
Browse files Browse the repository at this point in the history
  • Loading branch information
ogrisel committed Sep 13, 2010
1 parent e3dc8d9 commit f6c6724
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scikits/learn/benchmarks/bench_glm.py
Expand Up @@ -66,6 +66,7 @@ def bench(factory, X, Y, X_test, Y_test, ref_coef):
delta = (time() - tstart)
# stop time

print "duration: %fms" % (delta * 1000)
print "rmse: %f" % rmse(Y_test, clf.predict(X_test))
print "mean coef abs diff: %f" % abs(ref_coef - clf.coef_.ravel()).mean()
return delta
Expand Down

0 comments on commit f6c6724

Please sign in to comment.