TransWikia.com

How can I weight each point in one-class SVM?

Data Science Asked on August 17, 2021

I want to give weights to some data points

Specifically, these are points related to anomalies

(I’m implementing one-class SVM for anomaly detection)

Exactly, I want to consider some data points that are likely to be anomalies as more important data points

Is it possible in one-class SVM ?

One Answer

If I understood correctly, you are tring to apply more weight in advance to certain points which you consider (based on domain knowledge?) that are likely to be anomalies, correct? Your one-class support vector machine is meant to give you that insight, instead of specifying it in advance, so you could check if those points are actually far from the "normality" decision surface found by the algorithm itself, to confirm that those are novelties, also quantitative via the decision_function method:

enter image description here
(source)

Here you can find a more detailed answer on how it works, in case you want to have a look.

Correct answer by German C M on August 17, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP