[scikit-learn] OneClassSvm | Different results on different runs

Abhishek Raj abhishekraj10 at yahoo.com
Thu Aug 3 06:15:50 EDT 2017


Hi,

I am using one class svm for developing an anomaly detection model. I
observed that different runs of training on the same data set outputs
different accuracy. One run takes the accuracy as high as 98% and another
run on the same data brings it down to 93%. Googling a little bit I found
out that this is happening because of the random_state
<http://scikit-learn.org/stable/modules/generated/sklearn.utils.check_random_state.html>
parameter
but I am not clear of the details.

Can anyone expand on how is the parameter exactly affecting my training and
how I can figure out the best value to get the model with best accuracy?

Thanks,
Abhishek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20170803/cd094e3f/attachment.html>


More information about the scikit-learn mailing list