我可以在 One Class SVM 中设置污染值吗?

Can I set the contamination value in One Class SVM?

我想知道在 Isolation Forrest、Elliptic Envelope 和 Local Outlier Factor (LOF) 中您可以设置污染值。是否可以对 Support Vector Margin 做同样的事情?

谢谢

Scikit-learn 文档中定义的污染值:

The amount of contamination of the data set, i.e. the proportion of outliers in the data set. Used when fitting to define the threshold on the scores of the samples.

考虑到这个定义,是的,在 SVM 中存在这样的机制,或者更准确地说,在 soft margin SVM 中。在 Soft margin SVM 中,您有一个参数 C,它控制模型在找到所需超平面时可以容忍的错误分类量。

您可以在这里阅读更多内容:https://stats.stackexchange.com/a/159051/237773