Closed seijikun closed 10 months ago
@seijikun Hi, I would like to ask about the change in https://github.com/cjlin1/libsvm/pull/170/commits/adbbfe236387f14080b4012775ab271fa2aa57c9 Why would you unset the the parameter "stderr" in line 292? Is there any meaningful benefit? Thank you so much for the answer.
We take the grid.py change for accepting file names with spaces. Other changes are not taken.
The current libsvm only allows loading trained svm-models from a file with the given name. Especially for use in mobile applications, parsing a model from a buffer would be much appreciated.
The PR consists of two commits:
svm_parse_model_from_buffer
which uses the new parser to parse svm-models from a given buffer.svm_load_model
to use the new parser.Correctness of the parser was tested with the following code - which simply compared the same model parsed from a buffer and a file (in between both commits):