<p>I want to give weights to some data points</p>
<p>Specifically, these are points related to anomalies</p>
<p>(I'm implementing one-class SVM for <em>anomaly detection</em>)</p>
<p>Exactly, I want to consider some data points that are likely to be anomalies as more important data points</p>
<p>Is it possible in one-class SVM ?</p>

CC BY-SA 4.0
2021-08-02T10:16:39.543Z
Hello, please keep all the necessary details in the question as it seems difficult to understand without related context.
hanugm
CC BY-SA 4.0
2021-08-02T10:21:29.540Z
@hanugm Hi, one-class SVM is known as a good anomaly detector (imbalanced binary classifier) However, I want to give weights to some data point in advance, so that the points can be anomalies in one-class SVM classifier
Dae-Young Park
CC BY-SA 4.0
2021-08-02T16:44:42.443Z
[This might help](https://github.com/yzhao062/pyod/blob/master/pyod/models/ocsvm.py)
Yahya
CC BY-SA 4.0
2021-08-03T12:18:37.280Z
@Yahya Thk you!
Dae-Young Park
<machine-learning><classification><support-vector-machine><binary-classification><anomaly-detection>
How can I weight each point in one-class SVM?
Dae-Young Park
# How can I weight each point in one-class SVM?

(Asked by: username_0 on 2021-08-02)

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 ?

**Tags:** machine-learning, classification, support-vector-machine, binary-classification, anomaly-detection

> **Comments:**
> **username_1**: Hello, please keep all the necessary details in the question as it seems difficult to understand without related context.  
> **username_0**: @username_1 Hi, one-class SVM is known as a good anomaly detector (imbalanced binary classifier) However, I want to give weights to some data point in advance, so that the points can be anomalies in one-class SVM classifier  
> **username_2**: [This might help](https://github.com/yzhao062/pyod/blob/master/pyod/models/ocsvm.py)  
> **username_0**: @username_2 Thk you!  

---

## 0 answers

