ripe_bananas
ripe_bananas

Reputation: 1100

Is it possible to do one-class classification with Microsoft ML.NET?

Is it possible to do one-class classification (wiki) with Microsoft ML.NET? I.e. in the training data set there is only one (the positive) class and I would like to tell if some test data belongs to this class or not. Can this be accomplished wiht ML.NET?

Pobably I can try with binary classification (although the prediction will always be classified as that class in the training data set) and inspect the score of the prediction, but this doesn't seem like a robust solution.

Thank you.

Upvotes: 0

Views: 569

Answers (1)

Zruty
Zruty

Reputation: 8667

Binary classification will not work with only one class, since the model will devolve into constant prediction.

We used to have one-class SVM in the internal precursor to ML.NET, but I don't see any evidence that it made it into the library. In this case, no, I cannot think of any workaround using existing algorithms.

Upvotes: 1

Related Questions