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

real time scaling of data? #96

Closed antithing closed 7 years ago

antithing commented 7 years ago

Hi, thank you for this lib, it is very useful. I am trying to use it in a real-time, streaming data scenario, and am having trouble with the scaling. Using the scale example, I am trying to pass a char *, rather than use command line. This may be a stupid question, but where is the part of the function that actually holds the scaled data?

I need to replicate the command line trainDataSvm_smile> trainDataSvm_smile.scale, pass in a char, and return the scaled char.

Thanks again.