]> granicus.if.org Git - liblinear/commitdiff
indicate in predict option that -b 1 is for logistic regression only
authorcjlin <cjlin@16e7d947-dcc2-db11-b54a-0017319806e7>
Tue, 11 Oct 2011 07:01:35 +0000 (07:01 +0000)
committercjlin <cjlin@16e7d947-dcc2-db11-b54a-0017319806e7>
Tue, 11 Oct 2011 07:01:35 +0000 (07:01 +0000)
README
matlab/predict.c
predict.c
python/liblinearutil.py

diff --git a/README b/README
index 4e45c2e359e7921f179f1c3966242253ffd391cf..73afde74a6544cc7cc11d69b4f312b6ff4285933 100644 (file)
--- a/README
+++ b/README
@@ -193,7 +193,7 @@ and C^m_i = C if m  = y_i,
 
 Usage: predict [options] test_file model_file output_file
 options:
--b probability_estimates: whether to predict probability estimates, 0 or 1 (default 0)
+-b probability_estimates: whether to output probability estimates, 0 or 1 (default 0); currently for logistic regression only
 
 Examples
 ========
index b700a3e94a5b49cb26c183f6d10a40c83f602531..972d24918976dffc33f42a504e62f89f3e25adee 100644 (file)
@@ -181,9 +181,8 @@ void exit_with_help()
        mexPrintf(
                        "Usage: [predicted_label, accuracy, decision_values/prob_estimates] = predict(testing_label_vector, testing_instance_matrix, model, 'liblinear_options','col')\n"
                        "liblinear_options:\n"
-                       "-b probability_estimates: whether to predict probability estimates, 0 or 1 (default 0)\n"
-                       "col:\n"
-                       "       if 'col' is setted testing_instance_matrix is parsed in column format, otherwise is in row format"
+                       "-b probability_estimates: whether to output probability estimates, 0 or 1 (default 0); currently for logistic regression only\n"
+                       "col: if 'col' is setted testing_instance_matrix is parsed in column format, otherwise is in row format"
                        );
 }
 
index 0b4be975b0956bdba3a21e949823ebc4d8a6a89a..9c3a9ab79ec09d6a528b0301242afefbd9a5fb63 100644 (file)
--- a/predict.c
+++ b/predict.c
@@ -156,7 +156,7 @@ void exit_with_help()
        printf(
        "Usage: predict [options] test_file model_file output_file\n"
        "options:\n"
-       "-b probability_estimates: whether to output probability estimates, 0 or 1 (default 0)\n"
+       "-b probability_estimates: whether to output probability estimates, 0 or 1 (default 0); currently for logistic regression only\n"
        );
        exit(1);
 }
index bf23b5ff40f383886e3c311114bf70c72289e4c8..8a8b3c0f265b0a4f6089fd16803e91aba7d4ea2d 100644 (file)
@@ -139,8 +139,7 @@ def predict(y, x, m, options=""):
 
        Predict data (y, x) with the SVM model m. 
        "options": 
-           -b probability_estimates: whether to predict probability estimates, 
-               0 or 1 (default 0);
+           -b probability_estimates: whether to output probability estimates, 0 or 1 (default 0); currently for logistic regression only
 
        The return tuple contains
        p_labels: a list of predicted labels