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

送分小仙女□ 提交于 2019-12-14 03:23:23

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/58606955/is-it-possible-to-do-one-class-classification-with-microsoft-ml-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!