Questions tagged [multiclass-classification]

776 questions
-2
votes
2 answers

How to find feature importance for each class in multiclass classification

I have written code to find the importance of each feature in the entire dataset for multiclass classification. Now I want to find feature importance for each class in multiclass classification, i.e. I want to find the list of features (for each…
-2
votes
1 answer

Can scikit-learn 'dummy classifier' be applied to multiclass scenario

I understand that dummy classifier https://scikit-learn.org/stable/modules/generated/sklearn.dummy.DummyClassifier.html gives a measure of baseline performance and it applies different strategies to predict. Have found examples of its application in…
Deb
  • 499
  • 2
  • 15
-2
votes
1 answer

How to save model from best iteration in xgboost?

I am using XGBClassifier for my image classification. As i am new to machine learning and xgboost. But recently i got to know that the model i am saving by using pickle library after certain iteration is the last iteration not the best iteration.…
-2
votes
1 answer

Getting TypeError: sparse matrix length is ambiguous; use getnnz() or shape[0] while doing multi class classification

from sklearn.naive_bayes import CategoricalNB from sklearn.datasets import make_multilabel_classification X, y = make_multilabel_classification(sparse = True, n_labels = 15, return_indicator = 'sparse', allow_unlabeled = False) from…
-2
votes
1 answer

One versus One and One versus All multiclass classification using logistic regression in python

This is my understanding of OvO versus OvA: One versus One is binary classification like Banana versus Orange. One versus All/Rest classification turns it into multiple different binary classification problems. My implementation in python for these…
-2
votes
1 answer

Unify classifiers based on their predictions

I am working on classifying texts and images of scientific articles. From the texts I use title and abstract. So far I have achieved good results using an SVM for the texts and not that good using a CNN for the images. I still did a multimodal…
-3
votes
2 answers

2x2 confusion matrix in three-class classification?

I am doing classification on a dataset with three classes (Labels Low, Medium, High). I run the following code to get my confusion matrix: from sklearn.metrics import confusion_matrix cm = confusion_matrix(y_test, y_pred) And I get the following…
-4
votes
1 answer

Datasets for Classification

does anyone some good datasets for classification via NLP? The BBC News Dataset worked very well for me, and this is kind of what I am looking for. (classification of text documents to 3-10 labels) Sadly, as I want to work with deep learning…
-5
votes
1 answer

Multiclassification task using keras

Classification (not detection!) of several objects in one image is the problem. How can I do this using keras. For example if I have 6 classes (dogs,cats,birds,...) and two different objects (a cat and a bird) in this image. The label would be of…
1 2 3
51
52