cjlin1 / libsvm

LIBSVM -- A Library for Support Vector Machines
https://www.csie.ntu.edu.tw/~cjlin/libsvm/
BSD 3-Clause "New" or "Revised" License
4.54k stars 1.64k forks source link

Missing return in csr_scale? #123

Closed chengpocheng closed 6 years ago

chengpocheng commented 6 years ago

When I use csr_scale in python, it's always return None. I found variable "scaled_x" in commonutil.py, but there is no return in this funciton. Could I add "return scaled_x" in csr_scale manually?

cjlin1 commented 6 years ago

Yes, this is a known bug. We will fix it in the next version You can add that manually

chengpocheng writes:

When I use csr_scale in python, it's always return None. I found variable "scaled_x" in commonutil.py, but there is no return in this funciton. Could I add "return scaled_x" in csr_scale manually?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.*

chengpocheng commented 6 years ago

Thank you!