TransmogrifAI icon indicating copy to clipboard operation
TransmogrifAI copied to clipboard

Is it possible to do multi-label classification with TransmogrifAI?

Open onema opened this issue 5 years ago • 2 comments

Problem This is more a question, and a feature request if the answer to the question is no.

Is it possible to do multi-label classification with TransmogrifAI?

Solution I should be able to generate models that map features to vectors by assigning 1 or 0 to each element of the vector.

Alternatives NA

Additional context Note that this is different from multi-class classification (the Iris example)

Multi-class classification

makes the assumption that each sample is assigned to one and only one label: a fruit can be either an apple or a pear but not both at the same time [1]

In the other hand multi-label classification

can be thought as predicting properties of a data-point that are not mutually exclusive, such as topics that are relevant for a document. A text might be about any of religion, politics, finance or education at the same time or none of these. [1]

References:

  1. Multiclass and multilabel algorithms
  2. Multi-label classification

onema avatar Oct 02 '18 01:10 onema

Thanks for the question! We don't currently have good support for this. Right now the only solution is to make a separate model or model selector for each label. This will then generate a prediction per label from which you can extract the 1 or 0 prediction for each label. We should definitely add better support for this and will add it to the backlog of features.

leahmcguire avatar Oct 02 '18 20:10 leahmcguire

@leahmcguire, thank you for your response! Looking forward to future improvements.

onema avatar Oct 03 '18 01:10 onema