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
0
votes
0 answers

Which is the most appropriate Accuracy metric for multi-label classification when there is an imbalance between negative - positive values

I will briefly explain my problem and the approaches I have tested so far. I have a movie dataset and I am trying to predict 17 genres based on 4 columns (about actors, plot, content, reviews). My target variable looks like this, y_train=array([[0,…
NikSp
  • 1,262
  • 2
  • 19
  • 42
0
votes
1 answer

Multilabel classification with imbalanced dataset

I am trying to do a multilabel classfication problem, which has an imabalnced dataset. The total number of samples is 1130, out of the 1130 samples, the first class occur in 913 of them. The second class 215 times and the third one 423 times. In the…
0
votes
1 answer

Using RandomizedSearchCV in Multi-label classification

I'm working with Multi-label probelm and I started to use sklearn which offers very nice out-of-the-box methods to handle multi-label. I was using MultiOutputClassifier with RandomForestClassifier as an estimator. Example with 4 classes: import…
0
votes
1 answer

Mask for neural network training

I am training a neural network and I found a dataset of pictures taken by drones. It says that it has 20 classes that should be detected. However the masks all looks like this (I'm sorry the image is really dark!): This is my mask When I try to…
0
votes
0 answers

Export decision tree in textual form

I m building a multiclass decision tree classifier and trying to print decision tree output in textual form. when my dependent variable is 1 this sklearn's export_text lib is giving correct results but it's not the case when we increase no of…
0
votes
1 answer

Apply trained BERT model for prediction deployment

I'm currently working on multi-label classification task for text data. I have a dataframe with an ID column, text column and several columns which are text label containing only 1 or 0. I used an existing solution proposed on this website Kaggle…
JEG
  • 154
  • 1
  • 15
0
votes
3 answers

Class Imbalance for image classification

I am working on multi-label image classification where some labels have very few images. How to handle these cases?
Nandan Pandey
  • 148
  • 1
  • 11
0
votes
0 answers

How to set a different thresholds for each class in multi-label classification

I have a multi-label classification problem that I am working on where some of the labels are imbalanced and I want to set the threshold differently for each label. I was doing the following before but this uses the same threshold for all the…
0
votes
2 answers

Scatter plot for Multi-label classification For Two Features With Decision Boundary

Dataset containing two labels 0,1 , how to plot a scatter plot for it..? Age EstimatedSalary Purchased 0 19 19000 0 1 35 20000 0 2 26 43000 0 3 27 57000 0 4 19 76000 0…
0
votes
1 answer

tuple index out of range in classifierChain fit method

I'm trying to use classifierChain for a multilabel classification problem and following this tutorial: https://code.i-harness.com/en/docs/scikit_learn/auto_examples/multioutput/plot_classifier_chain_yeast from pmlb import fetch_data from…
Aizayousaf
  • 39
  • 15
0
votes
1 answer

Text Classification of News Articles Using Spacy

Dataset : Csv files containing around 1500 data with columns (Text,Labels) where Text is the news article of Nepali Language and Label is its genre(Health, World,Tourism, Weather) and so on. I am using Spacy to train my Text Classification Model. So…
0
votes
1 answer

How to modify DataGenerator() function of the binary classification to multi-label classification in Keras?

I already have a network which can do the binary classification. Now I want to extend it to a multi-label classification network. I have already modified the model (use 'sigmoid' as the output layer activation function and use 'binary_crossentropy'…
0
votes
1 answer

How to calculate hamming score for multilabel classification

I tried to calculate hamming loss and hamming score for multilabel text classification def hamming_score(y_true, y_pred, normalize=True, sample_weight=None): acc_list = [] for i in range(y_true.shape[0]): set_true = set(…
Nadina
  • 185
  • 1
  • 1
  • 8
0
votes
1 answer

How do I decode the multiclass when I use a LabelEncoder for my target variable in sklearn?

I have a multi classification problem which I am trying to solve and the target variable contains genders(male, female). I have used a LabelEncoder from sklearn to implement the one hot encoding. I plotted a confusion matrix, and I got an output…
0
votes
1 answer

Adding convolution layers on top of inception V3 model

I need to train an image classifier using inception V3 model from Keras. The images pass through 5 Conv2D layers and 2 MaxPool2D layers before entering the pre-trained inception V3 model. However my code gives me an error of ValueError: Depth of…