]> granicus.if.org Git - liblinear/commitdiff
In the README file of python interface, p_val should be p_label
authorpopo <popo@16e7d947-dcc2-db11-b54a-0017319806e7>
Thu, 22 Mar 2012 03:27:37 +0000 (03:27 +0000)
committerpopo <popo@16e7d947-dcc2-db11-b54a-0017319806e7>
Thu, 22 Mar 2012 03:27:37 +0000 (03:27 +0000)
in the usage of evaluations().

python/README

index 13a0734f0a677e2387c7b5b74e45c45348cf53a5..7eca2a700ebc1e9cf7c6cb5b51e328706c362901 100644 (file)
@@ -63,7 +63,7 @@ in liblinearutil.py and the usage is the same as the LIBLINEAR MATLAB interface.
 >>> save_model('heart_scale.model', m)
 >>> m = load_model('heart_scale.model')
 >>> p_label, p_acc, p_val = predict(y, x, m, '-b 1')
->>> ACC = evaluations(y, p_val)
+>>> ACC = evaluations(y, p_label)
 
 # Getting online help
 >>> help(train)