Questions tagged [multiclass-classification]
776 questions
2
votes
0 answers
Tensorflow classifier underfits consistently
I am using the Tensorflow DNNClassifier for my dataset that has 25 features, and 12 class labels.
My code right now is:
def main():
training_set =…

skooly
- 21
- 2
2
votes
1 answer
single neuron layer after softmax (keras)
I need to create a neural network (with keras) that has as last layer a single neuron that contains the index of the neuron with the maximum value prediction in the precedent softmax layer.
For example my softmax layer gives as result this:
[0.1,…

Francesco Scala
- 201
- 3
- 15
2
votes
1 answer
Tensorflow tf.metrics.accuracy multi-label always zero
My label looks like this:
label = [0, 1, 0, 0, 1, 1, 0]
In other words, classes 1, 4, 5 are present at the corresponding sample. I believe this is called a soft class.
I'm calculating my loss with:
logits = tf.layers.dense(encoding, 7,…

rodrigo-silveira
- 12,607
- 11
- 69
- 123
2
votes
1 answer
Multiclass classification of text in R
I have build a random forest for multiclass text classification. The model returned an accuracy of 75 %. There are 6 labels, however out of the 6 classes, only 3 are classified and rest are not classified. I would really appreciate if anyone could…

Karthik Shanmukha
- 417
- 1
- 5
- 14
2
votes
1 answer
How are the outputs of precision_recall_fscore_support in sklearn ordered?
I am doing a multi-class classification problem with the target labels of 0, 1, and 2 (dtype=int). I built my model and want to evaluate how good it is using precision, recall, and f-score. Here's what I did:
precision,recall,fscore,support =…

puifais
- 738
- 2
- 9
- 20
2
votes
1 answer
Multi class classification using gaussian naive bayes
I know that the Naive Bayes is good at binary classification, but I wanted to know how does the Multiclass classification works.
For example: I did a text classification using Naive Bayes earlier in which I performed vectorization of text to find…

The Novice Programmer
- 119
- 1
- 3
- 11
2
votes
1 answer
GridSearch for MultiClass KerasClassifier
I am trying to do a grid search for a multiclass classification with Keras. Here is a section of the code:
Some properties of the data are below:
y_
array(['fast', 'immobile', 'immobile', ..., 'slow',
'immobile', 'slow'],
…

Anderlecht
- 475
- 5
- 17
2
votes
1 answer
Train multi-class classifier for binary classification
If a dataset contains multi categories, e.g. 0-class, 1-class and 2-class. Now the goal is to divide new samples into 0-class or non-0-class.
One can
combine 1,2-class into a unified non-0-class and train a binary classifier,
or train a…

useprxf
- 269
- 1
- 3
- 13
2
votes
1 answer
AttributeError: 'Sequential' no attribute 'get_shape' when merging models
I am trying to create two sequential models (each trained on different sets of data - different images). Then I would like to take the average of their outputs, and add a softmax layer to give me a single classification output based on the two…

Deya
- 41
- 1
- 4
2
votes
1 answer
Multiclass vs Multilabel
Currently, I am working on projects in which I have to classify the restaurant review data. I am using multinomial Naive Bayes algorithm. I am bit confused that my problem is related to multiclass or multilabel.
review example-
Please treat your…

lucy
- 4,136
- 5
- 30
- 47
2
votes
1 answer
How to predict multiclass probabilities from glm logistic regression?
I have 10 datasets with binary and multiclass factors, I used logistic regression with R "glm" which predicts the class probability class,prediction(formula,data,type="response"). How can I get the predicted class instead, like other models give?…

Kamel
- 61
- 2
- 6
1
vote
0 answers
How does h2o's distributed random forest handle multi-class problems?
The documentation for distributed random forest in h2o states that, for multiclass problems, "a tree is used to estimate the probability of each class separately". I can see this in visualising the trees that each class indeed seems to have a…

nickc
- 11
- 2
1
vote
0 answers
"Type" of the feature in vertex AI classification model shows differently between the model and the deployment
When i train an AutoML model in Vertex AI, the type of the feature is "numeric", but when i deploy the model, the type is showing as "text" and the model expects a text value to be passed for prediction.
In this case, i created a dataset with {time…

Krishna
- 81
- 1
- 9
1
vote
0 answers
Why does my XGB multiclass classification problem get a multioutput error?
I'm trying to learn XGB with a multiclass classification problem (Kaggle's Otto Group Product Classification). I keep getting the following error
XGBoostError: [04:49:48] ../include/xgboost/objective.h:98: multioutput is not supported by current…

Abb
- 25
- 3
1
vote
0 answers
Keras softmax layer output not summing 1
I'm working on a four class multi-class text classification problem. I used a pretrained masked language model and add a classification head. The model takes two text sources as input and should output the normalized probabilities.
Here is my…

Santiago Esteban
- 61
- 1
- 6