Questions tagged [multiclass-classification]

776 questions
2
votes
2 answers

Plot of average AUC from multiclass.roc in R

I want to plot macro average AUC with three classes. My work example is: roc <- multiclass.roc(Claims$CLAIMS2 ~ Claims$PredA) roc #Call: #multiclass.roc.formula(formula = Claims$CLAIMS2 ~ Claims$PredA) #Data: ClaimsA$PredA with 3 levels of…
F74
  • 31
  • 2
2
votes
3 answers

Is it necessary to mitigate class imbalance problem in multiclass text classification?

I am performing multi-class text classification using BERT in python. The dataset that I am using for retraining my model is highly imbalanced. Now, I am very clear that the class imbalance leads to a poor model and one should balance the training…
fam
  • 583
  • 3
  • 14
2
votes
0 answers

Best way to choose a threshold for a multiclass classification problem

I have build a model using Keras. My main aim is to classify animals belonging to 10 different categories. The model is performing well. However, when I am testing the images with non animal images, the model is trying to fit the image between the…
2
votes
1 answer

Why doesn't GridSearchCV have best_estimator_ even after fitting?

I am learning about multiclass classification using scikit learn. My goal is to develop a code which tries to include all the possible metrics needed to evaluate the classification. This is my code: from sklearn.model_selection import…
2
votes
0 answers

How to show f1 scores for each class in tensorboard during training

I am training a multi-class classification network. I use metrics from tensorboard-addons and compile the model like this: import tensorflow-addons as tfa [...] metrics = [tfa.metrics.F1Score(num_classes=CLASSES,…
2
votes
1 answer

Multilayer Perceptron for multiclass classification task

Assuming that I have a MLP that uses ReLU as activation function and CrossEntropyLoss as loss function to classify samples with 3 features that are part of one of 10 classes: How would I implement that? The target values are given as numbers from 0…
2
votes
1 answer

How can I combine Pipeline with cross_val_score for a multiclass problem?

This is a pretty straightforward question, which I don't think I can add much than the direct question: how can I combine pipeline with cross_val_score for a multiclass problem? I was working with a multiclass problem at work (this is why I won't…
2
votes
1 answer

What is the difference between MulticlassClassificationEvaluator and MultilabelClassificationEvaluator in PySpark?

MulticlassClassificationEvaluator and MultilabelClassificationEvaluator are two (of many) Classification Algorithm Evaluators found in PySpark. I can't find/ understand the difference between these two.
2
votes
0 answers

Multi-Multi-Class Classification in Tensorflow/Keras

I already posted this question on CrossValidated, but thought the StackOverflow community, being bigger, might be able to answer this question faster. I'd like to build a model that can output results for several multi-class classification problems…
Jed
  • 1,823
  • 4
  • 20
  • 52
2
votes
0 answers

Azure autoML weight columns

I am using autoML for training purposes, however my dataset is very imbalanced. It is a multiclass task with 5 classes and I want to minimize this effect when training. I have verified the documentation and it seems autoML support the creation of a…
2
votes
1 answer

Wrong ROC curve for multiclass classification

I have trained a CNN to classify images into 5 classes. But when I try to plot ROC curve for each class versus the rest, all 5 classes have almost a diagonal curve with AUC of around 0.5. I have no idea what has gone wrong. The model should have an…
2
votes
1 answer

Keras multi-class classification loss is too high

I am training a model in multi class classification to generate texts. Below is a sample of the…
2
votes
0 answers

TF.keras.metrics.AUC does not work on multiclass

I have a multiclass problems. Three classes with labels 0 1 and 2. If I create a model netowrk and I run this at the end model.add(Activation('softmax')) model.compile(optimizer = 'adam',loss='sparse_categorical_crossentropy', …
2
votes
1 answer

Build an Ensemble Learning Model for Image Multi-classification from pre-training

I'm trying to create an ensemble with three pre-trained VGG16, InceptionV3, and EfficientNetB0 for a medical image classification task. Here is my code based on Keras with Tensorflow backend: def load_all_models(): all_models = [] …
2
votes
1 answer

Keras Multi-class Multi-label image classification: handle a mix of independent and dependent labels & non-binary output

I am trying to train a pre-trained VGG16 model from Keras for a multi-class multi-label classification task. The images are from Chest X-Ray 8 dataset from NIH. The dataset has 14 labels (14 diseases) plus a "no finding" label. I understand that for…