Questions tagged [multilabel]

Multi-label classification where multiple target labels might be assigned to each instance.

162 questions
95
votes
6 answers

What is the difference between Multiclass and Multilabel Problem

What is the difference between a multiclass problem and a multilabel problem?
Learner
  • 4,007
  • 11
  • 37
  • 39
40
votes
3 answers

What are the measure for accuracy of multilabel data?

Consider a scenario where you are provided with KnownLabel Matrix and PredictedLabel matrix. I would like to measure the goodness of the PredictedLabel matrix against the KnownLabel Matrix. But the challenge here is that KnownLabel Matrix have few…
Learner
  • 4,007
  • 11
  • 37
  • 39
27
votes
4 answers

Multilabel classification metrics on scikit

I am trying to build a multi-label classifier so as to assign topics to existing documents using scikit I am processing my documents passing them through the TfidfVectorizer the labels through the MultiLabelBinarizer and created a…
mobius
  • 271
  • 1
  • 3
  • 7
24
votes
2 answers

How to use scikit-learn's cross validation functions on multi-label classifiers

I'm testing different classifiers on a data set where there are 5 classes and each instance can belong to one or more of these classes, so I'm using scikit-learn's multi-label classifiers, specifically sklearn.multiclass.OneVsRestClassifier. Now I…
chippies
  • 583
  • 1
  • 3
  • 13
24
votes
3 answers

Would a Random Forest with multiple outputs be possible/practical?

Random Forests (RFs) is a competitive data modeling/mining method. An RF model has one output -- the output/prediction variable. The naive approach to modeling multiple outputs with RFs would be to construct an RF for each output variable. So we…
redcalx
  • 788
  • 2
  • 7
  • 14
13
votes
2 answers

How to apply neural networks on multi-label classification problems?

Description: Let the problem domain be document classification where there exists a set of feature vectors, each belonging to 1 or more classes. For example, a document doc_1 might belong to Sports and English categories. Question: Using neural…
10
votes
3 answers

Multilabel logistic regression

Is there a way to use logistic regression to classify multi-labeled data? By multi-labeled, I mean data that can belong to multiple categories simultaneously. I would like to use this approach to classify some biological data.
user721975
  • 825
  • 2
  • 9
  • 15
9
votes
2 answers

Neural network for multi label classification with large number of classes outputs only zero

I am training a neural network for multilabel classification, with a large number of classes (1000). Which means more than one output can be active for every input. On an average, I have two classes active per output frame. On training with a cross…
8
votes
1 answer

What is the difference between a multi-label and a multi-class classification?

What is the difference between multi-label classification and multiclass classfication. Speficially, what is the difference between a label and a class? Please provide a clear example. "Multiclass classification should not be confused with…
7
votes
1 answer

Why does keras binary_crossentropy loss function return wrong values?

Binary cross entropy for multi-label classification can be defined by the following loss function: $$-\frac{1}{N}\sum_{i=1}^N [y_i \log(\hat{y}_i)+(1-y_i) \log(1-\hat{y}_i)]$$ Why does keras binary_crossentropy loss function return different values?…
Dmitry
  • 181
  • 1
  • 1
  • 6
7
votes
1 answer

Micro vs weighted F1 score

In a multi-label or multi-class classification setting, when choosing between a micro or a weighted F1 score, what shall I take into account? The main upside of choosing macro is that one gets a sense of effectiveness on small classes. Assuming that…
Franck Dernoncourt
  • 42,093
  • 30
  • 155
  • 271
6
votes
1 answer

Multi-label or multi-class...or both?

I'm having a hard time getting the difference between multi-class and multi-label classification with CNNs. My understanding is that if I want to classify different breeds of dogs, that is a multi-label classification as I have the same class of…
amel
  • 63
  • 1
  • 3
5
votes
2 answers

What type of multi-label method does sklearn's random forest classifier use?

I have trained RandomForestClassifier on data with 3 labels. The label set Y looks like this: Y = array([[0, 0, 0], [1, 0, 0], [0, 0, 1], [1, 1, 0], [1, 0, 1], [0, 0, 0]]) I have some feature set X: X = array([[13, 4, 2], [2, 2,…
Bill Robinson
  • 53
  • 1
  • 4
5
votes
1 answer

Theoretical justification for training a multi-class classification model to be used for multi-label classification

Can a multi-class classification model be trained and used for multi-label classification, under any mathematical-theoretical guarantee? Imagine the following model, actually used in one machine learning library for (text) classification: A…
matt
  • 256
  • 2
  • 13
5
votes
0 answers

Confusion matrix for multilabel classification

I know that a similar subject was treated here, but my question is a little bit different. I have a result of multilabel classification, like this (2 observations, 3 labels in the example, in practice I have 10k observations and 300 labels): >…
Tau
  • 81
  • 1
  • 5
1
2 3
10 11