Questions tagged [multilabel-classification]

Multilabel classification assigns to each sample a set of target labels. This can be thought as predicting properties of a data-point that are not mutually exclusive, such as topics that are relevant for a document. A text might be about any of religion, politics, finance or education at the same time or none of these.

Filter by
Sorted by
Tagged with
0
votes
0answers
58 views

How to train BERT (multi label) on imbalanced dataset for search query category classification

I have a dataset of 2 million search queries relative to 7000 categories. same query could have multiple categories. Aim is to predict category/categories for query with confidence score. I tried ...
0
votes
0answers
45 views

How best to convert label classification into regression?

I have a dataset of genes for which I'm trying to predict genes that cause a disease. Originally I was doing this with a multilabel classification. I had 3 groups: I labeled already known disease-...
1
vote
1answer
98 views

Multi-label text classification. 3-4 labels per text, 100 labels overall

My first pet ML project, so please pardon if I phrase something incorrectly. Recently I had IMDB sentiment analysis binary classification practice on Tensorflow site. Now I am keen to do multiple ...
1
vote
0answers
36 views

Best algorithm/model to establish relevance between events utilizing mixed data type (Tags, Time, x_coordinate, y_coordinate)?

I'm building a relevance ranking system for incidents occurrence and prevention. My goal is to use four attributes to establish relevance: tag (About 500 tags), x_coordinate, y_coordinate and time. ...
1
vote
1answer
299 views

Test set larger than train set [closed]

There is a two class dataset with 1121 values in total, having 230 from same class and 891 from the other class. The training set is choosen as 230+230=460 from both classes and the test set as the ...
1
vote
0answers
34 views

Suggestions for Open-Source Tool for Image Classifications (with Nesting)

I'm looking for an open source tool to assist my colleagues and I to label images for a machine learning application. We don't actually need bounding boxes or anything to pinpoint regions within each ...
1
vote
0answers
34 views

How to calculate separate binary accuracy metric for each label in a multi-label classification in Keras?

I'm stuck with this: def multilabel_binary_acc(y_true, y_pred): return [K.equal(y_true[:,n], K.round(y_pred[:,n])) for n in range(y_pred.shape[1])] But it ...
1
vote
1answer
53 views

Classifying text as emails or ages

I am trying to classify small strings into three categories. Examples: ...
2
votes
1answer
179 views

How to apply MultiOutputClassifier to a dataset for Naive-Bayes algorithm

I have a dataset which is as follows, (it's taken from an article online and I have been trying to Naive Bayesian algorithm on it) Original Dataset y attribute After having done some manipulations (...
1
vote
1answer
38 views

How to cluster label (in a multilabel classification problem) which mostly appear together in a class

To cluster label (in a multilabel classification problem) which mostly appear together in a dataframe? For example, I have this dataframe: ...
0
votes
1answer
136 views

Multi-label classification with nested features

I need to perform a multi-label classification. I have three features and they are nested. I am unsure how to combine this or what kind of classification algorithm would be best. Some multi level ...
1
vote
1answer
202 views

Public dataset for news articles with their associated categories for multilabel data classification

I am wondering if there are any public datasets of news, like The New York Times (NYT) or similar to various news categories such as politics, entertainment, lifestyle, general news, sports, etc. I ...
2
votes
0answers
38 views

What kind of learning problem is this?

Say I have $n$ multi-class classification problems $p_1$, ..., $p_n$. Each of these have their own training data. While they are all distinct problems, there may be similarities in their data (which ...
0
votes
1answer
141 views

Softmax regression cost function code [closed]

I really do not understand what does this code do M = sparse.coo_matrix(([1]*n, (Y, range(n))), shape=(k,n)).toarray() The code is related to calculating the ...
0
votes
1answer
31 views

2-label dataset for 3-label classifier?

I have a dataset containing headlines and sentiment related to those headlines. The headlines have been filtered out from another bigger dataset using the following criteria: keep the ones that have a ...
0
votes
1answer
50 views

Which is better: multi-output model or separate models for similar tasks?

I am working on two problems: classification of images into high-level classes (e.g. shoe, dress, jacket etc.) classification of the attributes of the same images on a lower level (e.g. shoe style, ...
1
vote
1answer
44 views

How to find the feature regions where each label is the most expected when using decision trees?

Given a decision tree for classification for example this one: What is the way to find the feature domain (petal and sepal width and length) where a sample would most likely occur in the feature ...
-2
votes
1answer
29 views

ML - Labelling - number of possibilities [closed]

I've started learning ML and stuck with the number of possibilities in labelling. I have a sample which comprises 4 attributes (binary) (from the book Apprentissage artificiel, Antoine Cornéujols) ...
0
votes
1answer
13 views

Which model for a content suggestion in which only some of the items are currently available

I am trying to understand the type of model that would be used in a content suggestion scenario where not all of the choices are available at a given time. For example, when an online movie ...
0
votes
0answers
655 views

ValueError: bad input shape

I have multilabel problem. I was using onevsrestclassifier and now i want to use onevsoneclassifier. ...
0
votes
1answer
660 views

MultiLabelBinarizer() with inverse_transform()

I have multilabel labels. Elements in a label mean voting. Here is how labels look: ...
0
votes
2answers
53 views

How to solve this classification problem: multi-class or multi-label?

In a supervised cancer classification task which is given the data containing metrics we want to classify whether the patient has cancer or is at high risk (label 1) or low risk (0). However, there is ...
2
votes
0answers
117 views

Multilabel Classification - Overfitting?

My task is the following: To input drug combinations and output renal failure-related symptoms from the drug combinations. Both the drug combinations and renal-failure related symptoms are represented ...
2
votes
2answers
172 views

How can I label (predict) an unseen set of data based on an existing model?

I'm working on a learning multi-label classification project, for which I've taken 16K lines of text and kind of manually classified them achieving around 94% of accuracy/recall (out of three models). ...
0
votes
1answer
178 views

Improving misclassification for one class in a multi-class classification task

Here I am trying to use 3 convolution layer neural network to classify a set of images (train data: (3249) , validation data: (487), test data: (326)) I have one class which is misclassified and I ...
1
vote
1answer
36 views

Is it better to have one model with more categories or less with two for multi-label classification?

For classifying text into three classes question, complain and complements where each sample can have multi-labels (question and complains, question and complements): is it better to have one model ...
1
vote
0answers
108 views

Positive/negative training sample imbalance in multi-label image classifiers

I'm trying to train VGG-16 on the Pascal VOC 2012 dataset, which has images with 20 labels (and a given image can have multiple classes present). The examples are highly imbalanced, so I've "...
0
votes
1answer
40 views

Is there a deep learning method for 3D labels?

As the question says, I want to feed labels into a neural net that are three dimensional. Let's say that I have 3 possible labels and each one of my data points corresponds to a percentage of those ...
0
votes
3answers
485 views

Evaluating a Multi-Label Classification model

I currently have a multi-label classification problem, for which I am using keras to build a neural network as follows: ...
0
votes
1answer
149 views

Multiclassification with large number of labels

I am attempting to build a classifier with a large input space of one hot encoded vectors. The output should be a vector of labels, with 10000 possible labels each. For example, the labels could ...
3
votes
1answer
99 views

Can reducing the number of classes in multi-label classification increase performance?

This is more of an open question with people which have experience in this. I'm working on a multi-class multi-label classification for chest x-rays. I would like to know how much can reducing the ...
1
vote
1answer
115 views

Reframing multilabel classification with imbalance in "both" directions

Consider the multilabel problem when asking "does the sample belong to this class" with, for example, a movie label dataset where almost every movie is labelled "drama" because of ...
0
votes
2answers
42 views
1
vote
1answer
40 views

how to classify text based on more than one column

I passages of text to classify by topic. I am using scikit learn, e.g. linear svc, but open to other options. Currently, use only the text of each passage (column labeled ...
2
votes
2answers
167 views

How to divide a dataset for training and testing when the features and targets are in two different files?

I am trying to divide a dataset into training dataset and testing dataset for multi-label classification. The datset I am working on is this one. It is divided into a file which contains the features ...
1
vote
1answer
57 views

Classification model to classify large number of classifiers?

Hello I am very new into the field of machine learning/deep learning , and I am finding it hard to select the right model for my research. What I am trying to build is a model to classify which ...
0
votes
0answers
864 views

multi-label prediction with pySpark

I am new to Spark I am using pyspark to predict a multi label results. I have converted multi labels to binary So my labels will look like this ...
2
votes
1answer
133 views

Random Forrest Sklearn gives different accuracy for different target label encoding with same input features

I'm using sklearn Random Forrest to train my model. With the same input features for the model I tried passing the target labels first with label_binarize to create one hot encodings of my target ...
1
vote
0answers
12 views

Doing q individual train/test splits for q possible labels in a multilabel problem?

Let's say that I have a multilabel problem, where each sample can be of class A, B, C, or any combination of these. Because of high imbalance, I've found that if I tackle the problem as 3 separate, ...
1
vote
1answer
860 views

Time Series Data Multi-Class Classification

This is a very general question, as I'm still very much in the learning phase with machine learning. I have some utility data around problematic meters. Even tho the data is "time series", I believe ...
1
vote
0answers
58 views

How to explain a stable NDCG@K in extreme multilabel recommender model

I am working in a multilabel recommender project and I try to evaluate it as a ranking problem. I calculate recall@k and precision@k which both looks quite well. Recall increases and Precision ...
0
votes
1answer
236 views

TensorFlow Time Series Tutorial Enhancement Gone Wrong

I’ve been following this time series tutorial for Tensorflow… https://www.tensorflow.org/tutorials/structured_data/time_series And it was going well and seemed to work ok. I substituted with my own ...
3
votes
1answer
1k views

What is the better way to predict classes for the models developed using the functional API in Keras

We can predict the class for new data instances using the Sequential classification model in Keras using the predict_classes() function. What is the way to predict the class for models that developed ...
2
votes
1answer
3k views

ValueError: The number of classes has to be greater than one; got 1 class in MultiLabel Classification problem

I am working in Python in a Multilabel Classification problem. I have a dataset with texts and around 20k unique labels. I transformed the text to word embeddings and now I use that in a ...
1
vote
1answer
145 views

How can I annotate labels to images automatically?

I have 80 classes, for each class, there are 100 images. I want to label all images for object detection. For this task I have downloaded the LabelIMG tool but it's taking a long time to do it. How ...
2
votes
1answer
50 views

Ranked or Ordered Class Classification

My friend was asked this question in an interview for analytics and I cannot figure out the answer so I would like to see how could this data science problem be solved. Here's the problem: Let's say ...
1
vote
2answers
642 views

Text classification into thousands of classes

Could somebody point me to a paper or code that is about classifying texts into potentially thousands of categories (topics)? I do have data based on Wikipedia and the number of categories is really ...
1
vote
0answers
19 views

Monotonicity of Jaccard and Dice in multilabel datasets

I understand that Jaccard and Dice follow a monotonic relation on binary datasets because the two are related as $J = {S \over {(2 - S)}}$, and I guess this would be the case when micro-average is ...
1
vote
0answers
19 views

What is the better model architecture and setting when using merge layers?

I am building a deep learning model with dense, dropout, and merge layers. The inputs will be N sentences' feature encoded by BERT (768 dim) and then each will go into the same dense layer as the ...
1
vote
1answer
933 views

How to interpret Keras predict output?

I am new in Keras and would want to apply a neural network on this dataset: https://www.drivendata.org/competitions/57/nepal-earthquake/ I have proprocessed the dataset transforming categorical ...