]> granicus.if.org Git - liblinear/commitdiff
Fix bug. get_label() returns integer list. model.get_type() is not supported.
authorpopo <popo@16e7d947-dcc2-db11-b54a-0017319806e7>
Wed, 25 Apr 2012 05:32:21 +0000 (05:32 +0000)
committerpopo <popo@16e7d947-dcc2-db11-b54a-0017319806e7>
Wed, 25 Apr 2012 05:32:21 +0000 (05:32 +0000)
python/README
python/liblinear.py

index e856e74326b2b3070434b1a41bcd84d0d2add376..d2ce9e817b425ed8db0ca825c69cfcd779e6dd3e 100644 (file)
@@ -197,7 +197,6 @@ LIBLINEAR shared library:
     Some interface functions to access LIBLINEAR models are wrapped as
     members of the class model:
 
-    >>> type = model_.get_type()
     >>> nr_feature =  model_.get_nr_feature()
     >>> nr_class = model_.get_nr_class()
     >>> class_labels = model_.get_labels()
index 890e18a03ca94e1019fecc03b9e4dfa8c6dcf75d..506f118bd01f5f96d47567f6112ff12039e97fd6 100644 (file)
@@ -222,7 +222,7 @@ class model(Structure):
 
        def get_labels(self):
                nr_class = self.get_nr_class()
-               labels = (c_double * nr_class)()
+               labels = (c_int * nr_class)()
                liblinear.get_labels(self, labels)
                return labels[:nr_class]