I am looking to implement multilabel classification using ML.NET. I read few posts which say it is not possible directly but rather through problem transformation by converting it into multiple binary classification problems.
So essentially I will be required to create n
classifier if my dataset has n
tags. I tried to do this by splitting my dataset label wise. But fit
method throws below exception. I am passing value of label column as 1
for all entries for a given label.
System.ArgumentOutOfRangeException: 'Must be at least 2. Parameter name: numClasses'
This can be fixed by adding entries with a particular label as 1
and all other entries as 0
but since each label will have lesser number of entries, I think that will dilute the learning and may result in lower accuracy.
Can someone suggest any other way to implement multilabel classification with ML.NET?