nicolaspanel/libsvm.net — pull request #12 by alexandrekow (2014-06-01 18:30:01+00:00)
Title: Refactoring of the Predict method and the C_SVC class and some unit test...

... fixing.

- Add a unit test to validate the fact that running the cross-validation several times returns the same accuracy when probability is set to false
- Add a way to configure the probability parameter when creating a C_SVC and set its default to 0 instead of 1
- Refactor the Predict method => It will now use the svm_predict method instead of the predict_probabilities method.
- Improved unit test when expecting exception
- Improved ProblemHelper unit test -> The test was not testing correctly the y values
- Rewrite a shorter version of the Read method

When there is a missmatch between the probability parameter used in the train and predict method, the libsvm C++ library behave strangely.
I encountered the same problem with the R library (see http://stackoverflow.com/questions/23267278/predict-svm-in-r-returns-different-results-with-the-same-imput)