From: Chih-Jen Lin Date: Wed, 22 Feb 2017 05:14:38 +0000 (+0800) Subject: fix a description in README: the size of w is nr_feature*nr_class but we didn't menti... X-Git-Tag: v211~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ccf2e39f0827440dd499feb4c8f0b5c7668f7587;p=liblinear fix a description in README: the size of w is nr_feature*nr_class but we didn't mention the exception when nr_class = 2. --- diff --git a/README b/README index 38c0c23..dd7899b 100644 --- a/README +++ b/README @@ -403,7 +403,8 @@ Library Usage nr_class and nr_feature are the number of classes and features, respectively. nr_class = 2 for regression. - The nr_feature*nr_class array w gives feature weights. We use one + The array w gives feature weights; its size is + nr_feature*nr_class but is nr_feature if nr_class = 2. We use one against the rest for multi-class classification, so each feature index corresponds to nr_class weight values. Weights are organized in the following way