Questions tagged [multiclass-classification]
776 questions
0
votes
1 answer
Naive-Bayes and Multi-Class classifier are returning integers. Data team says they should be probabilities
I have a dataset with 100 columns, divided into training and testing sets, 40,000 and 10,000 rows, respectively. My task was to train and test two classifiers, and to report the results by providing CSV files with the predictions for the target…

Jack Harris
- 245
- 4
- 13
0
votes
0 answers
Multi Class Classification using XGBClassifier
I am using XGBClassifier for multiclass classification(5 classes - [1,2,3,4,5]). I have set objective parameter as 'multi:softmax' but still when I predict using my model I am getting continuous values instead of integers.
I tried with specifying…

boredaf
- 98
- 1
- 8
0
votes
2 answers
How to calculate ROC_AUC score having 3 classes
I have a data having 3 class labels(0,1,2). I tried to make ROC curve. and did it by using pos_label parameter.
fpr, tpr, thresholds = metrics.roc_curve(Ytest, y_pred_prob, pos_label = 0)
By changing pos_label to 0,1,2- I get 3 graphs, Now I am…

Shahnila Rahim
- 1
- 1
- 1
0
votes
1 answer
How can I know the labels of my predicted classification?
I have trained my classifier on 3 dialects using text classification. And this was the confusion matrix and precision:
confusion matrix
[[27 6 0 16]
[ 5 18 0 21]
[ 1 3 6 9]
[ 0 0 0 48]]
The precision
[0.81818182 0.66666667 1. …

John Sall
- 1,027
- 1
- 12
- 25
0
votes
1 answer
Can we use all of the dataset for doc2vec and CNN?
I have a dataset and the task is a multiclass classification. Paragraph vectors represent documents, and a CNN is modeled. For this, I split the dataset as training (75%) and test (25%). For Doc2Vec, the training set is used. Then, the remaining…

cng
- 11
- 5
0
votes
1 answer
Is it possible to export MultiClassification model in Python with Catboost?
I am trying to save my MultiClassification model in Python.
I know that currently Catboost currently does not support saving MultiClassification models in Python.
Are there any workarounds to this, if I want to save and apply this model do I have…

rreg101
- 209
- 1
- 9
0
votes
0 answers
Decoding Keras Multiclass Classifications
I am preparing input to feed into a Keras Neural network for a multiclass problem as:
encoder = LabelEncoder()
encoder.fit(y)
encoded_Y = encoder.transform(y)
# convert integers to dummy variables (i.e. one hot encoded)
dummy_y =…

Alessandro Ceccarelli
- 1,775
- 5
- 21
- 41
0
votes
1 answer
Multi-class classification: good accuracy on validation set but prediction on test set
I'm trying to classify images belonging to 16 classes. The images have different geometric shapes (see Fig. 2). The training set consists of 16 x 320 = 5120 images, the validation set has 16 x 160 = 2560 images, and the test set has 16 x 2 = 32…

Jeremy
- 35
- 5
0
votes
1 answer
Out-of-core multiclass classifier with class probabilities as targets
I'm working on a project for which I'd like to use scikit-learn to train an out-of-core multiclass classifier. The prediction target is an array of class probabilities probabilities, e.g.
Y = [[0.1, 0.5, 0.4],
[0.8, 0.1, 0.1],
[0.2, 0.1,…

Kris
- 22,079
- 3
- 30
- 35
0
votes
0 answers
ML classification, how to handle a cell that has 2 information?
So i have a situation that i couldnt get out. Im pretty new to machine learning and its community.
Im trying to make a classification model but here is my problem:
So lets say i have 2 of X (variables; text or integers) columns and 1 Y (which im…

Oğuzhan Alptekin
- 11
- 5
0
votes
1 answer
How to evaluate the results of multi-class classification by using keras?
I want to use deep learning for multi-class classification (softmax, keras). So, I constructed model, and I got the error, which was about that expected output shape and actual output shape is different. In my case, type were 1,2,3, so expected…

beginner
- 13
- 6
0
votes
0 answers
How to save and remove some of images to other files in Python?
Although i am new at Python i am trying to classify some images. Since i have to augment my train dataset, i decided to split my test and train images into different files. Now, i am trying to remove and save the test images into other files. But…

Yavuz A.
- 11
- 5
0
votes
0 answers
Unbalanced data: Feed-forward deep network with balanced class_weight does not learn beyond the dominant class
I have data with 5 output classes. The training data has the following no of samples for these 5 classes: [706326, 32211, 2856, 3050, 901]
I am using the following keras (tf.keras) code:
class_weights = class_weight.compute_class_weight('balanced',
…

dbm
- 159
- 7
0
votes
1 answer
How to change the performance metric from accuracy to precision, recall and other metrics in the code below?
As a beginner in scikit-learn, and trying to classify the iris dataset, I'm having problems with adjusting the scoring metric from scoring='accuracy' to others like precision, recall, f1 etc., in the cross-validation step. Below is the full code…

Noprogexprnce mathmtcn
- 247
- 3
- 16
0
votes
0 answers
Trying to reduce the levels of the categorical variable I want to predict (on R)
I am working on a classification task with a categorical dependent variable with 99 levels (each corresponding to a country)
I am using a decision tree, and it looks like I cannot have more than 32 levels so that I need to reduce the number of…

Carbo
- 906
- 5
- 23