Questions tagged [multiclass-classification]
776 questions
-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…

hmsquare
- 1
-1
votes
1 answer
How to train a model with few classes which are being misclassified and then merge them with all the other classes (including those few classes)?
I am working for a multiclass classification problem say 0,1,2,3,4,5. where say class 2,3,4 are being misclassified a lot. So, I want to train the model twice. At first, for all the six classes and then again for those 3 classes only. Then I want to…

t_r272
- 21
- 1
-1
votes
1 answer
Classification performance degrades when rows from test dataset are shuffled
Why does the classification performance degrades when I shuffle the test dataset?
For replication purposes:
I created an imbalanced dataset:
n = 1
centers=[[0.0, -5, 2.5], [0, 0,2.5], [0, 5,2.5]]
cluster_std = [1.0, 1.0,1.0]
X, y =…

Gerard
- 518
- 4
- 19
-1
votes
3 answers
TensorFlow Keras multi classification, what datasets to prepare?
For example, if I want to train a model to classify "dog", "cat" and "neither dog nor cat".
Do I need to prepare datasets for "neither dog nor cat"?
Is there any way to accomplish it with only "dog" and "cat" datasets?

Asagao
- 44
- 6
-1
votes
1 answer
What is the default mechanism used by scikit-learn algorithms for multiclass classification?
I am using scikit-learn to build a multiclass classification model. To this extent, I have tried the RandomForestClassifier, KNeighborsClassifier, LogisticRegression, MultinomialNB, and SVC algorithms. I am satisfied with the generated output.…

Tony P
- 211
- 5
- 12
-1
votes
1 answer
Training and testing accuracy avoided overfitting and have 98% validation accuracy but classification report is always 0.01%?
I have done fruit detection image classification problem using CNN i have done all the things upto training and fitting the model and my accuracy and validation accuracy are almost 100% but when i try to print classification report and confusion…

Ganesh Kuikel
- 25
- 6
-1
votes
1 answer
One class completely ignored after oversampling
I built a decision tree and oversampled the minority class using smote. After this, class 2 (from classes 0, 1, 2, 3) is being completely ignored (for the unbalanced test set). Nothing is classified as class 2 correctly or wrong. How can this be?

maybeyourneighour
- 494
- 2
- 4
- 13
-1
votes
1 answer
how use cross validation to determine cost in multi-classification svm
HI I used the following for multi-classification in R. how I can choose the best cost with using cross-validation?
n <- nrow(hd)
ntrain <- round(n*0.75)
set.seed(314)
tindex <- sample(n, ntrain)
train_iris <- hd[tindex,]
test_iris…

sherek_66
- 501
- 5
- 14
-1
votes
1 answer
CNN features for classification
I am new to deep learning and I hope you guys can help me.
The following site uses CNN features for multi-class classification:
https://www.mathworks.com/help/deeplearning/examples/feature-extraction-using-alexnet.html
This example extracts…

run2you
- 3
- 2
-1
votes
1 answer
Invoke multiple classifiers in cascade
I'm a new user of scikit-learn,
I have a problem of classification, in which I would like to invoke a first classifier that predict two classes {malware, begnin}, then only if the output predicted label of the classifier 1 is malware call the…

NL_user
- 1
- 1
-1
votes
1 answer
Build via scikit-learn a composed Classifier that first detect a class then classify this class in sub-classes
I'm a new user of Sci-kit learn, I'm working on a classification problem, in which I have two mains classes, Class_1 : benign programs and Class_2 : malware(malicious programs) The second class (malware) is composed from different sub-classes:…

NL_user
- 1
- 1
-1
votes
1 answer
Multiclass-classification of stages in colorectal cancer data
I'm working on a project with colorectal cancer stage multiclass-classification using Gene Expression Data. My dataset contains 11 Biomarkers. The results from the classification are around 40%. I have tried different models for classification with…

fross
- 1
- 4
-2
votes
0 answers
Can a decoder of an autoencoder be used for classfication of various actions without using any additional classifier like softmax classifier?
If anyone have python code, please share the code for using the decoder to classify or recognize the action?
I am new to Deep learning and machine learning codings. My already used codes (which I have taken from github repository) are:
%matplotlib…

aparajita sabita
- 1
- 1
-2
votes
1 answer
Regression Loss Function Working Perfectly on My Classification Model
I have built a model that detects what type of shot a table tennis player is performing using TensorFlow. After I built my Neural Network, the model I am dealing with seems to be a multi-label classification model. The binary cross-entropy and…

Ali koteich
- 1
- 1
-2
votes
1 answer
Is it possible to only use K-1 logits for K-class classification?
For multi-class classification, we use softmax function to calculate the probability.
In the case of case = 2, we have softmax(a)_0 = e^a_0/(e^a_0 + e^a_1) = 1/(1+e^(a_1 - a_0) = sigmoid(a_0 - a_1), which we reduce softmax to logistic, and we only…

segfault
- 109
- 1
- 9