How to train single-class classification ?
14 次查看(过去 30 天)
显示 更早的评论
Hi All,
Could anyone share me a guide to train the machine learning/ deep learning model for single label?
I cannot do this with Deep learning toolbox with VGG16
I have 1 single label of 1 typle image.
I want to train a model to classify the image belong to this type of label or not.
Evaluate base on probaility
Thanks and Regard!
Han
1 个评论
Walter Roberson
2023-5-19
Well, in theory you could train on a set of examples of features, and you could have the classifier reject an example if it was too many standard deviations outside the mean for the features. But this is a fairly weak classifier.
What would be much more common would be to train on one-versus-everything-else -- for example to identify stop signs, you would train with several examples of stop signs, and you would also include examples of other traffic signs... and of dalmations, and of blueberries, and of rivers, and of cereal boxes, and of sunsets, and of spectrograms... and so on.
The classification operation would then either predict class 1 (stop signs) or class 2 (image is something else that is not a stop sign).
采纳的回答
Ranjeet
2023-6-5
编辑:Ranjeet
2023-6-5
Hi Jenifer,
As per the description, it is a one-class classification task.
If the occurrence of the target image (the one class that is to be detected) is quite less frequent than all other classes, then the problem falls under anomaly detection. You should look at the following resources to get started:
If the target class occurs equally frequently as all the other classes, you may formulate the problem as binary classification (target vs non-target class) and try the following examples:
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!