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
-1
votes
1 answer

multiclass Vs multilabel classification text dataset

As you see in the figure our textual data need to be classified among some diseases; knowing that a symptom (in the column: label) can be used for multiple diseases. So, in this case, what type of classification is considered in this problem? Is it…
-1
votes
2 answers

Multi-label classification with FastText

I was wondering if FastText is able to deal with multi-labelled data? Could someone share a simple example along with a confusion matrix (true vs predicted labels)? I have already taken a look at FastText documentation page. Thank you in advance
-1
votes
2 answers

Create Binarized Rows in Python Pandas Dataframe

Suppose data frame df is d = { 'Title': ['Elden Ring', 'Starcraft 2', 'Terraforming Mars'], 'Genre' : [ 'Fantasy;Videogame', 'Videogame', 'Fantasy;Boardgame'] } pd.DataFrame(data=d, index=None) Such that it's Elden Ring …
Jibril
  • 967
  • 2
  • 11
  • 29
-1
votes
1 answer

pos_weight in multilabel classification in pytorch

I am using pytorch for multilabel classification. I have used pos_weights in BCELoss since i have imbalanced data. FOr to use pos_weight, whether we need to take the entire dataset(train, validation, test) or only the training set for calculating…
-1
votes
1 answer

I'm trying to apply a multi-label classification

I'm trying to apply a multi-label classification. The shapes are: x_train.shape (3975, 3788) y_train.shape (3975, 66) x_test.shape (994, 3788) y_test.shape (994, 66) When I try to train, it gives the following error: ValueError: bad input shape…
-1
votes
1 answer

Can we make a single-label prediction from multi-label features?

Is there any way to predict a single-label output using multi-label features? I am now working with a document type prediction model. Each document has at least one label and 7 different labels are used in labelling the data. Given a series of…
-1
votes
1 answer

Which supervised machine learning classification method suits for randomly spread classes?

If classes are randomly spread or it is having more noise, which type of supervised ML classification model will give better results, and why?
-1
votes
1 answer

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: n_cols = dataset.shape[1] print(n_cols) model = Sequential() model.add(Dense(128, activation='relu',…
rshah
  • 675
  • 2
  • 12
  • 32
-1
votes
3 answers

Why is more layers better in deep learning?

I understand mathematically that deep learning has more than one hidden layer, whereas regular machine learning has just one. Is that right? If so, why, and how is it better to have more than one layer, that give deep learning the edge over machine…
-1
votes
1 answer

How to calculate the information gain and entropy of a dataset with ten features?

I have a dataset of 10K, and I created the following ten features: Distance - (0 or 1) IsPronoun - (True or False) String Match - (True or False) Demonstrative NP - (True if i and j is demonstrative pronoun) Number Agreement - (check if i or j is…
-1
votes
1 answer

I want to implement a machine learning or deep learning model for text classification (100 classes)

I have a dataset that is similar to the one where we have movie plots and their genres. The number of classes is around 100. What algorithm should I choose for this 100 class classification? The classification is multi-label because 1 movie can have…
user11919180
-1
votes
1 answer

how to obtain class name from column number after using multilabel_binarizer?

This is the code i wrote. After executution y contains 100 columns representing classes where values are 1 where that data point is in that class. multilabel_binarizer = MultiLabelBinarizer() multilabel_binarizer.fit(meta['Tags']) # transform…
user11919180
-1
votes
1 answer

IndexError: index 917 is out of bounds for axis 0 with size 11, on npargmax in tensorflow

I am using the example here to classify images. I have 2147 images belonging to 11 classes. I am running the classifier on the batch of images. So far program is going well but I am not able to assign the labels because I am getting the following…
-1
votes
2 answers

How to classify groups of aliases to identify one individual

i j 1 2 1 3 3 2 4 5 5 6 7 8 9 10 . . . . . . 101 1 102 105 102 4 Each row in the above table represents a person. The columns of i and j are identifiers of…
-1
votes
1 answer

MultiLabelBinarizer: inverse_transform fails on a single sample?

I want to apply the inverse_transformof MultiLabelBinarizer to a single sample, e.g.: labels = ['Architektur & Garten', 'Ganzheitliches Bewusstsein', 'Glaube & Ethik', 'Kinderbuch & Jugendbuch', 'Künste', …
David Batista
  • 3,029
  • 2
  • 23
  • 42