From: Chih-Jen Lin Date: Mon, 30 Jul 2018 14:21:00 +0000 (+0800) Subject: Changes due to a bug of the same file in LIBSVM: X-Git-Tag: v221~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be029b1b9b7ecbc8c42ed4610ae2503141733b11;p=liblinear Changes due to a bug of the same file in LIBSVM: Fix a bug in python/commonutil.py that the function "csr_scale" does not return the scaled data --- diff --git a/python/commonutil.py b/python/commonutil.py index f2da8de..fcc6d24 100644 --- a/python/commonutil.py +++ b/python/commonutil.py @@ -164,3 +164,5 @@ def csr_scale(x, scale_param): " > new #nonzeros %d\n" % scaled_x.getnnz() + "If feature values are non-negative and sparse, get scale_param by setting lower=0 rather than the default lower=-1.", file=sys.stderr) + + return scaled_x