Questions tagged [multiclass-classification]

Multi-class classification is when you have a classification problem with multiple classes, specifically 3 or more classes. Many classifications are binary by design, therefore the additional nomenclature of multi-class classification was defined to describe algorithms capable of classifying datasets with more than 2 classes.

Filter by
Sorted by
Tagged with
1 vote
1 answer
28 views

I used SMOTE-ENN to balance my dataset and it improved the performance metrics, but how can I be sure it's not overfitting?

The models were evaluated using 10-fold cross validation. foldCount = StratifiedKFold(10, shuffle=True, random_state=1) The models in question are XGBoost. ...
  • 15
1 vote
1 answer
12 views

Class Imbalance in Dataset of Images

When dealing with an imbalanced dataset, I have been taught to oversample on only the train samples and not the entire dataset to avoid overfitting, however this was for structured text based data in ...
  • 11
0 votes
0 answers
42 views

Weighting and loss function for multi-dimensional output on ECG neural network in Tensorflow

I am working on a DNN that is training on ecg data with a shape of [None,1,2500] and output shape of [None,12,19] where 19 is a ...
2 votes
1 answer
46 views

Multiple classes present in one-hot encoding

When dealing with classification for multiple classes present in the same sample, can the output layer have the form of one-hot encoding, but instead of only one hot, have multiple? That is, in case ...
  • 23
0 votes
0 answers
11 views

Is there a way to use CNN to separate/cluster the images into N clusters without online learning or only very mild online learning?

There are lots of examples to use CNN as classifier to separate images into known classes. There also lots of examples to use CNN as encoder and generate embedding to check the similarity of objects. ...
  • 101
0 votes
1 answer
18 views

What else can I do to help my model my classification task?

I have a classification task that I'm currently getting really low accuracy metrics on (my highest accuracy score is about 20%). So far I've run 5 models: quadratic disc analysis, logistic regression, ...
1 vote
1 answer
27 views

What to do if my dataset have only One instance for class in classification?

I am working on a benchmark dataset for text classification. The dataset has about 300 classes, and approximately 50 of these classes have a single instance. In a paper that used fine-tuning BERT, the ...
0 votes
1 answer
28 views

How to explain relative difference between macro-AUC and macro-F1 in a multiclass classification problem?

I recently published a paper in which the result of a supervised model is the following. All the metrics are macro-averaged. I have been asked to comment on the gap between the AUC and the other ...
1 vote
1 answer
21 views

Movement in cohorts

I am working on a user sales data which gets updated week over week. Based on the sales done in each week, the user is categorized in segment A, B or C. This means size of each segment could change ...
  • 31
0 votes
0 answers
26 views

Unable to get explainability for sklearn Random Forest classifier using Shapash

I'm using SmartExplainer of shapash 1.6.0. I have 30 input features out of which 25 are categorical. I have preprocessing transformer object for the same. The code snippet is as follows ...
0 votes
0 answers
53 views

Getting Error: TypeError: cross_entropy_loss(): argument 'target' (position 2) must be Tensor, not tuple

I am working on a CNN multi-class classification of different concentrations (10uM, 30uM, etc.) I create my dataset to include the images as the features and the concentrations as labels. Note that ...
0 votes
2 answers
47 views

Data Preparation for next word prediction

In most places, I have seen that when preparing the training data and label for next-word prediction from the corpus one uses a fixed window size say of length 4, and then scans the subsequences of ...
  • 101
0 votes
0 answers
27 views

Multi-label classification inference

I am working on a multi-label classification with transformers. I want to assign tags to input text. First, I have trained a model multiclass and with the pipeline function I can retrieve all possible ...
0 votes
1 answer
34 views

What loss function to use for predicting discrete output sequence given a discrete input sequence?

I am working on sequence-to-sequence tasks where the input is an n-length sequence of discrete values from a finite set S (say ...
0 votes
2 answers
92 views

How to do train-test split for multi-class classification

I am performing multi-class classification problem of different concentrations of Acetaminophen in a specified dataset. My data is in the form of images and I am using CNN. I have compiled all the ...
0 votes
1 answer
65 views

How to compare labels from clustering analysis and original ones?

I was asked to run a clustering analysis to assess the validity of labels for a manually labelled dataset. I can simply save the actual labels (4 classes: 0, 1, 2, 3) and run clustering analysis (let'...
0 votes
0 answers
14 views

How to deal with ambiguous classification outputs that exceed the specified threshold but are too close together?

I have a simple classification setup (intent classification). Once an input is received it's parsed using Multinomial Logistic Regression and then a score is predicted for each class. I pick the ...
0 votes
1 answer
22 views

What statistical model suits for this problem?

I have a dataset with 6 target variables and the target variables are Boolean. The requirement is to use logistic regression to build the model. Which ML approach can be used in this situation? Will ...
0 votes
1 answer
37 views

Do I need to use always the same "Test" dataset to compare between different models?

I have two datasources A and B, and I want to check how several methods can affect the accuracy of my multi class models: If I use cross-validation with validate dataset to obtain the best hyper ...
0 votes
1 answer
29 views

DecisionTreeClassifier cannot take one-hot encoded classes?

I got ValueError: Found array with dim 3. None expected <= 2. I dont know which array has dim 3? DecisionTreeClassifier cannot take one-hot encoded classes? But ...
0 votes
0 answers
81 views

WARNING:tensorflow:Your input ran out of data; interrupting training Error

Due to VRAM capacity limitations, I cannot fit the whole training and validation data into the GPU memory. Instead of cutting some of the data out, I decided to use TF.dataset object to create the ...
0 votes
0 answers
7 views

How to get the top feature contributors for the differnt classes in the classifiction model?

In classification model , we build models with binary/multi class responses. Is there way to get the top features contributing positively,negatively to each of the classes.( i.e top features helping ...
  • 101
0 votes
1 answer
18 views

error useing soft max gives outputs greater than 1

I am using Hugging Face AutoModelForSequenceClassification, model is roberta, using it for text classification. There are 3 classes. The output is: ...
0 votes
0 answers
17 views

Multi-class classification model unable to return desired outcome

I have a scenario of multi-class dataset with around 10 distinct classes of target. There are 3 categorical features each with multiple labels. If we check the data, each unique combination of feature ...
0 votes
1 answer
76 views

LSTM model is producing really bad results for multiclass text classification for imbalanced small dataset

I am training a LSTM model on my current dataset to predict the multiclass categories - there are 18 mutually exclusive categories and the dataset has ...
1 vote
1 answer
36 views

If I'm comparing performance between two different datasets should sample and class size be uniform?

If I'm comparing performance between classification models on two different datasets should the number of samples per class, the number of classes, and features per sample be the relatively the same ...
1 vote
1 answer
26 views

Predicting many classes, is it a known solution to build n-group classifiers?

Imagine you want to predict 2048 classes. Instead of asking one model to predict all of them at once, is it a known type of solution to have a model predict which cluster or group of classes an input ...
0 votes
1 answer
26 views

Get dependant probabilities in multiclassification

After training my CatBoostClassifier model I call get_proba function which returns me list of probabilities. The problem starts from an another point... I transfer that data into dataframe then to ...
0 votes
0 answers
29 views

The best approach and library for time-series similarity

I have a time-series classification problem with IoT signals. The training dataset has seven target signals. I used tsai as a fastai/torch library, and I achieved satisfying results. However, in a ...
  • 3
0 votes
0 answers
14 views

Predicting multiple categorical targets: Single model vs multiple models

I have to predict multiple categorical columns. Each one is a multi-class classification. Should I train separate models to predict each column individually or create a new categorical column which ...
0 votes
1 answer
18 views

Is there a procedure for determining if a classification problem is ill-defined?

Consider a group of objects denoted $O = \{o_0, o_1, \cdots\}$ where each object is associated with a feature vector $F = \{f_0, f_1, \cdots\, f_{N-1}\}$. For this case, assume the features are ...
  • 113
0 votes
0 answers
11 views

Different parameter estimates for multinomial regression vs multiple logistic regression models

I am new to multinomial regression but looking online I gathered that if there are k=three outcomes I can solve the problem using k-1=2 logistic regression models where: model 1: $ln(\frac{P(y=group2)}...
0 votes
0 answers
46 views

improve accuracy for LinearSVC (multiclass text classification)

I'm working on a project in which I'm trying to classify bugs (taken from Jira) to their relevant assignee group. After creating and cleaning the dataset (~50000 records), my best results have always ...
  • 167
0 votes
0 answers
40 views

How to interpret the Shapley values returned by TreeShap for multiclass classification?

I have read in Molnar (2022) and Gianfagna (2021) books that the TreeShap method returns the exact Shapley values of Shapley (1951). The Shapley value estimates, given the current set of feature ...
  • 126
1 vote
1 answer
160 views

How to split train/test datasets according to labels' classes

I faced a problem while I using sklearn.train_test_split(). Here is the code I use. ...
0 votes
0 answers
33 views

VIF - Variance inflation factor in random forest classification

can i use VIF for random forest classification. My task in hand is multiclass classification. I read it somewhere that you can use VIF only for regression Task. Is it true?
  • 1
0 votes
0 answers
21 views

R tabnet package (by torch) need an example of multiclass classification

I'm trying to train a model with three classes but I'm getting terrible results, can anyone show me what I'm doing wrong? ...
  • 103
0 votes
0 answers
7 views

Can/should a logical multi-class classification anomaly detection system be described as "unsupervised machine learning"?

I would like to ensure that my use of terminology is accurate. My question is: what terminology should I be using in this case? The system I am building assigns classes (-1, 0, +1) to observations ...
0 votes
0 answers
12 views

Adaboost multi class classification

How do I use adaboost for multiclass classification? Do I split the classes into two groups and categories the groups as 1 and 0
  • 1
0 votes
0 answers
8 views

looking for datasets to build multi-output models

I am looking for beginner friendly datasets(of any type) that can be used to train a deep neural network with multiple outputs. I tried looking on places like Kaggle but there is so many datasets that ...
  • 1
0 votes
0 answers
35 views

Trying to find a Model for multiclass classification problem where you want two classes close together but far away from a third?

So I've got this problem where I want to find out where two classes are more a like ( features wise) than a third. So for example if I have three classes {A,B,C} I want to find out where class A and B ...
0 votes
1 answer
117 views

calculate sklearn metrics from 2d array

I have the following frame of actual value, ...
0 votes
2 answers
93 views

Accuracy decreases after adding more samples

I'm working on a multiclass text classification task (5 classes). I've 2 types of datasets: regular (~22000 samples) dataset of duplicates (~19000 samples) I've written a logic that labels them all. ...
  • 167
0 votes
0 answers
29 views

Can I transform multi-class data that has 3 classes to different number of classes?

I've seen cases where the author reduces the number of labels/classes -- e.g. classification of 5-star based reviews to 3 classes (positive, negative, neutral) by changing the label of 4 and 5 stars ...
0 votes
0 answers
13 views

Is there a way to choose the most appropriate option from mapping file while predicting the target label?

I have a multi class classification problem where I am predicting a target label using two error text fields. Input data looks like this: SNo. Error Description Error Trace Target Label 1 some text ...
1 vote
1 answer
16 views

terminology and advice for NLP on multiclass classification with ordered levels

I work in healthcare and am trying to see if I can use NLP for a classification task on complex sentences. To explain, I have different labels, and each label has multiple levels. I am not sure on the ...
  • 11
0 votes
1 answer
138 views

How to understand a large result of torch.nn.NLLLoss() with correct predicts?

I'm learning the usage of torch.nn.NLLLoss() and torch.nn.LogSoftmax(), and I'm confused about the results of them. For example: ...
  • 101
0 votes
1 answer
35 views

How can I get the score of each Prediction for a Multiclass Classification model

I am just curious, and I wanted to know if it is possible to get the score of each prediction in a Multiclass Classification model. If it is possible, how can I implement this to make predictions on ...
0 votes
0 answers
22 views

Algorithm suggestions for a clustering problem

I have a collection of images and each of those images has a set of tags attached to them. There are around 30k images There are around 1k unique tags The least tagged image has 3 tags, and the most ...
  • 101
0 votes
1 answer
68 views

Should I drop duplicates or not?

I am dealing with a real-data multiclass classification problem. The task is to classify the kind of fault for some equipments. Features in input are equipments' alarms (X), the target is the fault ...

1
2 3 4 5
11