One Class SVM not working

3 views (last 30 days)
Andrea Lanza
Andrea Lanza on 25 Nov 2023
Answered: Angelo Yeo on 30 Nov 2023
Hi all, I have to train a one class SVM for anomaly detection. I have a dataset with two features. I trained the model on normal instances with ocsvm function. What I don't understand are the contour lines for the ocsvm scores... I do not expect those to be like that. In the figure are represented the normal instances in the space (feature1, feature2) and the contour lines corresponding to some values of ocsvm score. They are simply absurd, not like the example see on the matlab guide. I would expect ellipsoidal contour lines, not these! Any help? Thank you!

Answers (1)

Angelo Yeo
Angelo Yeo on 30 Nov 2023
This looks like a bug in ocsvm. Can you please contact Technical Support?

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Tags

Products


Release

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!