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

Why is the training accuracy of my model high while training it, but low while deploying it?

I used a deep neural network (VGG16) for texture images classification. I had to train the whole network from scratch to obtain a good accuracy, since the network is pretrained to recognize object images. After training, I obtained 90% as validation…
0
votes
1 answer

a high accuracy in multilabel classification in keras but the predictions are worse

I have a multilabel classification problem, I used the following code but the validation accuracy jumps to 99% in the first epochs. my whole input is 1245x1024, so each line means one spectrum (so there are 1245 spectrum examples). So one spectrum…
0
votes
1 answer

How to get "no label" from a supervised multi-label machine learning model?

I'm working on a supervised multi-label ML model which for now works by predicting a "tag" (label) for an input from the user, based on the dataset it was trained with. The training dataset had two columns - posts & tags. Whenever I give anything…
0
votes
1 answer

Keras multi label image classification. Do I pass my data correctly? Did I preprocess correctly?

I am stuck in my keras multilabel problem. I got the hint to work with a custom data generator to create small batches and avoid memory issues. I work with a csv file with IDs, Filenames and their corresponding labels (21 in total), which looks…
0
votes
0 answers

How do I perform multi layer classification?

In my dataset, I explored there are actually three layers of labels. All are not independent labels. For the first layer, the label is binary. If the class is 1, we can go to the further layer. The second layer has four different class and each…
0
votes
2 answers

ROC curve and AUC for a multiclass and multilabel problem. ValueError: Target scores need to be probabilities for multiclass roc_auc

so, I would like to calculate the ROC curve and AUC of a code of mine where I have 28 classes and my images can be several at the same time. For example, an image can belong to class 1, 2 and 3 at the same time. I have a vector of 28 positions as a…
0
votes
0 answers

Proper way to evaluate a multilabel classifier in keras using sklearn

I have a multilabel data, with 8 labels for each instance. The shape of validation data is (1000,8), when i use the data, keras fit_generator show me good result. Epoch 1/5 - 445s - loss: 0.3608 - acc: 0.8522 - val_loss: 0.3528 - val_acc:…
0
votes
1 answer

Will SVMs always succeed in finding a linear decision boundary?

SVMs works by mapping points to a higher and higher dimension until it can find a boundary which is linear. Does SVM always succeed in finding a decision boundary which is linear?
0
votes
1 answer

How to work with big dataset for multi-label image classification in terms of memory and batches

I am working on a dataset of 300K images doing multi class image classification. So far i took a small dataset of around 7k images, but the code either returns memory error or my notebook just dies. The code below converts all images to a numpy…
0
votes
1 answer

Multi-label loss function for large dataset

I'm training a CNN for multi-labels but it has around 160 labels, so when using normal CNN Architecture with sigmoid for the output layer and binary_crossentropy for the loss the network is still biased for the zeros, because the loss function takes…
0
votes
1 answer

Implementing BCEWithLogitsLoss from pytorch in keras

I have a model that I am trying to train on a dataset which has a class imbalance. The problem is a multilabel classification problem (each sample has 1 or more labels). I also have weights for each class which I have calculated for my dataset. I…
Kevin
  • 3,077
  • 6
  • 31
  • 77
0
votes
1 answer

How can I fit MultiLabelBinarizer correctly?

I have some labels (A,B,C,H,H1,H2 etc).However when I fit MultiLabelBinarizer, it splits H1 into H and 1. Can someone tell me if there's a solution to this problem besides changing the H1 label into another label. Thank you mlb =…
user
  • 93
  • 10
0
votes
0 answers

CNN returns same classification for different images in production

I'm having an issue with my already trained neural network as I try to restore it from disk (previously saved to it after finishing training) so I can use it in production. It is a CNN that asks the user (through CLI), the path to a chest x-ray…
0
votes
1 answer

How to get labels from wikidata?

I want to use wikidata for MultiLabelClassify. I don't understand the struct of wikidata, I want get all the labels from a entity of wikidata. Could you give me some suggestion?
0
votes
1 answer

sklearn svc.decision_function does not return result

I am trying to use decision_function as opposed to predict. I received value of negative and above 1. I need to help to write threshold to determine anything but not 0 to get the result of the array. Thanks.decision_function
J.L
  • 17
  • 5