Questions tagged [multilabel-classification]

Multi-label classification refers to the problem in Machine Learning of assigning multiple target labels to each sample, where the labels represent a property of the sample point and need not be mutually exclusive.

844 questions
7
votes
0 answers

How to perform super pixel image segmentation and feature extraction

I am interested in multi class segmentation of skin tissues, I have 3000 skin tissue labels classified into 4 classes, I have created a CNN classification algorithm to train my classification model. I would like to use the classification model for…
7
votes
1 answer

How to interpret: Label Ranking Average Precision Score

I am new to Array programming and found it difficult to interpret the sklearn.metrics label_ranking_average_precision_score function. Need your help to understand the way it is calculated and any appreciate any tips to learn Numpy Array…
7
votes
2 answers

Multi-label classification Keras metrics

Which metrics is better for multi-label classification in Keras: accuracy or categorical_accuracy? Obviously the last activation function is sigmoid and as loss function is binary_crossentropy in this case.
7
votes
1 answer

multioutput classifier/learning 5 target variables

I am a newbie to machine learning. I have been struggling with a problem for a few weeks now and I hope someone can help here: I have a data set with one continuous variable and the rest are categorical. I managed to encode the categorical variables…
7
votes
2 answers

Weird accuracy in multilabel classification keras

I have a multilabel classification problem, I used the following code but the validation accuracy jumps to 99% in the first epoch which is weird given the complexity of the data as the input features are 2048 extracted from inception model…
7
votes
2 answers

Is there an easy way to get confusion matrix for multiclass classification? (OneVsRest)

I was using OneVsRest classifier on three class classification problem, (three random forests). Occurrence of each class is defined my dummy integer (1 for occurrence, 0 for otherwise). I was wondering if there is an easy alternative way to creating…
7
votes
2 answers

Multi-label feature selection using sklearn

I'm looking to perform feature selection with a multi-label dataset using sklearn. I want to get the final set of features across labels, which I will then use in another machine learning package. I was planning to use the method I saw here, which…
7
votes
3 answers

Sklearn: Evaluate performance of each classifier of OneVsRestClassifier inside GridSearchCV

I am dealing with multi-label classification with OneVsRestClassifier and SVC, from sklearn.datasets import make_multilabel_classification from sklearn.multiclass import OneVsRestClassifier from sklearn.svm import SVC from sklearn.grid_search…
Francis
  • 6,416
  • 5
  • 24
  • 32
7
votes
2 answers

PyStruct - No matching signature find

I'm trying to use code from here: https://github.com/pystruct/pystruct/blob/master/examples/multi_label.py I have X_train with shape (2591, 256) and y_train with shape (2591, 175). When I run this: tree = chow_liu_tree(y_train) tree_model =…
thecoparyew
  • 715
  • 1
  • 9
  • 24
6
votes
0 answers

Multi-Class or Multi-Label Classification with LightGBM

I am working on a classification project that an outcome may belong to multiple classes. For example, the outcomes may belong to Class A, B, and/or C; e.g., A, B, A&B, A&C, B&C, etc. However, I want to predict the probability of a class. For…
6
votes
3 answers

Multi-class, multi-label, ordinal classification with sklearn

I was wondering how to run a multi-class, multi-label, ordinal classification with sklearn. I want to predict a ranking of target groups, ranging from the one that is most prevalant at a certain location (1) to the one that is least prevalent (7).…
6
votes
1 answer

Correct Ranking Loss Implementation

I have a multi-label problem and I am trying to implement the Ranking Loss as a custom loss in TensorFlow. (https://arxiv.org/pdf/1312.4894.pdf) I made a simple CNN with a final Sigmoid layer of activations, to have independent distributions for…
6
votes
1 answer

Keras multi-label image classification with F1-score

I am working on a multi-label image classification problem with the evaluation being conducted in terms of F1-score between system predicted and ground truth labels. Given that, should I use loss="binary_crossentropy" or…
6
votes
2 answers

Multilabel image classification: is it necessary to have training data for each combination of labels?

I want to train a CNN for a multilabel image classification task using keras. However I am not sure how to prepare my tranining data. More specifically, I am wondering if I need training images that show a combination of two or more labels or if it…
6
votes
0 answers

OneVsRestClassifier prediction probabilities calibration

In my multi-label classification problem apart from class predictions, I need to retrieve confidence scores for these predictions. I'm using OneVsRestClassifer with a LogisticRegression model used as a base classifier. While experimenting with my…
1 2
3
56 57