Questions tagged [multiclass-classification]

776 questions
0
votes
0 answers

how to calculate the gradients with tf.GradientTape if there are multiple labels?

I want to calculate the gradients, my model is a little bit difficult, it can be represented as the following loss function: loss=label1*f1(x)+label2*f2(x)+label3*f3(x) x is the feature of model, f1 is one model which is predicting one logit, you…
0
votes
1 answer

Why at Logistic Regression(multi-class) accuracy is so small?

I try to solve a problem with 3 features and 6 classes(label). The training dataset is 700 rows * 3 columns. The features values are continious from 0-100. I use one-Vs-all method, but I do not know why the prediction accuracy is so small, just 24%.…
0
votes
0 answers

Multiclass Classification using expand.grid

So far I built many classification models using the "caret" package. This library allows me to find the best parameters for XGBoost by using expand.grid and trying all the possible combinations of some parameters as shown in the example below. …
user11428
  • 115
  • 5
0
votes
1 answer

multiclass classification bad value error

I am doing multi-class classification shape of data is (299,6) and the shape of labels is (299,5). Here is the sample of data that i…
0
votes
1 answer

Classification of Stock Prices Based on Probabilities

I'm trying to build a classifier to predict stock prices. I generated extra features using some of the well-known technical indicators and feed these values, as well as values at past points to the machine learning algorithm. I have about 45k…
0
votes
0 answers

Prediction of low class

I'm training an XGBoost on a dataset of 2 millions of rows. But it's too bad to predict classes with low frequency. Is there any parameter on R which can help me to resolve that problem?
bruuh
  • 1
  • 2
0
votes
0 answers

Filter shape in fully connected layer and output layer in Convolutional Neural Network

I'm building convolutional neural network for classification of the data into different categories The input data is of shape : 30000, 6, 15, 1 the data has 30000 samples, 15 predictors and 6 possible categories. The weight and bias dictionary I'm…
0
votes
0 answers

How to plot decision regions for paired features in a multi-class problem?

I have the following problem in Python : I have a dataset with 7 features and 4 classes. I used a MLP classifier and I got very good results in terms of accuracy. Now, they are asking me to demonstrate if it was really necessary by using a MLP…
0
votes
1 answer

multiple intents from given a input text?

Can we have a model which distinguishes sentence with intent from a given input text like in the example below? "Turn the bathroom light off and remind me to take the trash out." There are two independent intents here: turn_lights,…
DON
  • 45
  • 7
0
votes
0 answers

hierarchical image classification in tensorflow

I want to do two steps classification. for each input I want to go for classify it to class1, 2, or ... and then based on each class, classify my input to specific class (for example is in first step high score belongs to class2, final label should…
0
votes
1 answer

How to calculate the accuracy when dealing with multi-class mutlilabel classification in tensorflow?

I am working with FER2013Plus dataset from https://github.com/Microsoft/FERPlus which contains the fer2013new.csv file. This file contains labels for each image in the dataset. An example on labels could be: (4, 0, 0, 2, 1, 0, 0, 3) where each…
0
votes
2 answers

Random Forest Multi Class Python does not improve accuracy

I am making a random forest multi-classifier model. Basically there are hundred of households which have 200+ features, and based on these features I have to classify them in one of the classes {1,2,3,4,5,6}. The problem I am facing is I cannot…
0
votes
0 answers

Using Keras LSTM to predict 10+ classes: inconsistent label outputs by model.predict

I am using keras bi-lstm to predict 14 classes. Here is my label index: label_index=`{'1':0,'2':1,'D':2,'7':3,'8':4,'9':5,'10':6,'11':7,'12':8,'13':9,'14':10,'15':11,'16':12,'17':13}` Here is part of my model…
0
votes
2 answers

One-hot-encoded labels___multi-hot-encoded output_Keras

I have a 1D-image with 1x2048 pixels as input and 32 classes for which I have defined a layer of 32 filters with the same size of the image(1x2048) which are L1-regularized. My image examples are one-hot encodded. However, my goal is to get a…
0
votes
1 answer

Doubts with cleverhans FastGradientMethod (FGM), adversarial image generation

I have a keras model (CNN with final softmax) that is an RGB image classifier. Output of the model are 5 possible categories for input images (one-hot encoded). I'm trying to generate adversarial images for my keras model with the Cleverhans…