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
2 answers

Neural network performance optimization

I am trying to classify medical report based on the symptoms mentioned in the report. Steps i am doing are 1) Extract symptoms from each medical report. 2) Create a Set of all the symptoms extracted from all medical reports, total terms so far are…
0
votes
5 answers

multi-label text classification with zero or more labels

I need to classify website text with zero or more categories/labels (5 labels such as finance, tech, etc). My problem is handling text that isn't one of these labels. I tried ML libraries (maxent, naive bayes), but they match "other" text…
0
votes
1 answer

How to train inception v3 model for multilabel classification?

I'm trying to build a model to detect multiple attributes in an image. I'm using the pre-trained inception V3 model. I understand that we have to change the final softmax layer to sigmoid. I'm loading the model as follows: with…
gibbidi
  • 183
  • 1
  • 8
0
votes
0 answers

SVM-Classification of multiclass

I've used Matlab Classification Learner App to train my SVM classifier and i have 99.9% of accuracy in prediction (i tested it with the function predict on matlab). What i wanted to do now was to predict without usind this function but using the…
0
votes
0 answers

Results of custom top K accuracy differ from Keras top_k_categorical_accuracy

I am using my own top K accuracy metric for multi label classification: def top_K_acc(y_true, y_pred, k): assert y_true.shape == y_pred.shape top_k_indx = np.argsort(y_pred, axis=1)[:,::-1][:,:k] n_guessed = 0 for i in…
0x1337
  • 1,074
  • 1
  • 14
  • 33
0
votes
1 answer

Convert data frame to mldr object to use in BR algorithm

I am using BR algorithm for multi label prediction. I need to convert the test data to MLDR object. But I fail to do so, because test data does not have outcome column. I use mldr_from_dataframe(dataframe, labelIndices, attributes, name) for the…
0
votes
0 answers

Multi-label classification sklearn

I'm new to sklearn and machine learning. I have a csv file containing the mappings of the following type: ID-2001-0001, ID-category_1 ID-2002 - 0002, ID-category_2 . . I have some 1010 unique ID's and 123 unique categories. Now, I wish to classify…
0
votes
0 answers

Multi Label classification with Binary Relevance with factor variables

I am trying to use multi label classification(Binary relevance). Many predictor variables are factor variables. It seems that for BR all the predictors has to be numeric. So how do I deal with this? Should I convert factors to integers?
0
votes
1 answer

Adding multiple softmax classifiers to TensorFlow example

I am starting with the generic TensorFlow example. To classify my data I need to use multiple labels (ideally multiple softmax classifiers) on the final layer, because my data carries multiple independent labels (sum of probabilities is not…
0
votes
1 answer

Testing a tensorflow network: in_top_k() replacement for multilabel classification

I've created a neural network in tensorflow. This network is multilabel. Ergo: it tries to predict multiple output labels for one input set, in this case three. Currently I use this code to test how accurate my network is at predicting the three…
0
votes
0 answers

Multi-label text classification with scikit-learn

I'm new to machine learning and I'm having trouble adapting any examples that I've found to my specific problem. The official documentation for scikit is rather spartan and full of terminology I'm unfamiliar with, so I'm not really sure which…
0
votes
0 answers

How to train ANN from PCA results?

I have performed PCA to all images of my database so I have different vectors returned from PCA like Egenface mean etc. My question is Which vector I would use to train my NN in MATLB? And How would I train NN for 5 clases?
0
votes
1 answer

Create lmdb for multi label classification

I am trying to create 2 lmdbs. One for my images one for my labels. I want to determine the angle of a picture, to do so I am trying to estimate the horizontal and the vertical angle. I have classes like: 0-10 degree horizontal 10-20 degree…
user4911648
0
votes
1 answer

Dataframe transformation (data preparation) in apache spark scala

Thanks to a previous answer, I managed from this input : To get the accumulator output. Now I am trying to get the following: What would be the best way to get the following table?
S12000
  • 3,345
  • 12
  • 35
  • 51
0
votes
0 answers

Python scikit learn how to build a model for multi-class and multi-label data?

I have dataset like this: Description attributes.occasion.0 attributes.occasion.1 attributes.occasion.2 attributes.occasion.3 attributes.occasion.4 descr01 Chanukah Christmas Housewarming Just…