question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Default values for nu and tol in OneClassSVM

See original GitHub issue

I think the default value for nu in the OneClassSVM should be 0.1 and not 0.5. As nu roughly corresponds to the fraction of outliers, it makes more sense to set it to a lower value.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
amuellercommented, Oct 2, 2018

libsvm indeed has

-n nu : set the parameter nu of nu-SVC, one-class SVM, and nu-SVR (default 0.5)

Maybe they just wanted to have it consistent between the three classes, which is indeed not a good reason.

Relevant statement from http://users.cecs.anu.edu.au/~williams/papers/P132.pdf: image

From the discussion in the paper it looks like 0.1 would indeed make more sense if we want to be consistent with the other estimators.

0reactions
glemaitrecommented, Jul 29, 2022

I let this issue open since it could make sense to change the default values of OneClassSVM. I closed the associated PR since we need more investigation regarding the stability of the algorithm with a smaller nu default value.

Read more comments on GitHub >

github_iconTop Results From Across the Web

sklearn.svm.OneClassSVM
Changed in version 0.22: The default value of gamma changed from 'auto' to 'scale'. coef0float, default=0.0. Independent term in kernel function. It is...
Read more >
Unstable behavior of OneClassSVM by changing 'nu'
In the example above, I'm using my dataset to identify outliers. After making slight changes to the nu parameter, there is a huge...
Read more >
One-Class SVM node Expert
If you choose Simple, all parameters are set with the default values as shown below. If you select Expert, you can specify custom...
Read more >
pyod.models.ocsvm - pyod 1.0.7 documentation
Parameters ---------- kernel : string, optional (default='rbf') Specifies the kernel type to be used in the algorithm. It must be one of 'linear',...
Read more >
8.26.1.6. sklearn.svm.OneClassSVM - GitHub Pages
Unsupervised Outliers Detection. Estimate the support of a high-dimensional distribution. The implementation is based on libsvm. Parameters :.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found