There is a option sample_weight in fit(X[, y, sample_weight]) function (OneClassSVM, sklearn library).

If I use the option sample_weight , I might give some weight to some point(that are likely to be more normal points), right?

Otherwise, what does mean the sample_weight?


  • $\begingroup$ It seems to me that this question may be off-topic, as you're trying to understand how an API can be used for your purposes (i.e. this seems to be a programming issue). I will leave it open for now. $\endgroup$
    – nbro
    Aug 4 at 10:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.