Questions tagged [multiclass-classification]

776 questions
-1
votes
1 answer

axis 1 is out of bounds for array of dimension 1 when using SVM

training data df = pd.read_excel('C:/Users/Ram Prakash/Downloads/Data.xlsx', sheet_name = 'Multiclass') X = df.drop('Fault Type', axis =1) y = df.iloc[0:, 10] y = le.fit_transform(y) # Train Test split X_train, X_test, y_train, y_test =…
-1
votes
1 answer

How do I get the class and corresponding class probability from a Keras Sequential model?

I am building a multi class classification model with 14 outputs. model.predict() only outputs an array of probabilities. np.argmax(model.predict()) only outputs a single class with the highest probability. What I am trying to get is something like…
jstarr34
  • 23
  • 4
-1
votes
1 answer

Machine Learning Algo for multiclass?

Which algorithm can be used for multiclass classification where each row is classified into multiple classes?
-1
votes
1 answer

Weighted Classification Metric for Multi class classification

I have a multi-class classification problem with the classes X-Small, Small, Medium and Big. I have the following requirement: Summary: Predicting a X-Small as X-Small is GOOD Predicting a X-Small as Small is OK Predicting a X-Small as Medium is…
-1
votes
1 answer

How to get the CK+ Dataset into a dataframe where one column is the image and the second column is the emotion (Is that even necessary?)

I want to build a model for emotion classification and tbh I am struggling with the dataset. I am using CK+ since I read it'd be on industry standard. I don't know how to format it the right way so I can start working. The Dataset is formatted in…
Nocry
  • 45
  • 7
-1
votes
1 answer

Unbalanced data for Multiclass regression

I'm trying to compare the performance between multi-class logistic regression(OvR) and Random Forest, but my dataset is unbalanced with 5 possible values for my label. Does the unbalanced data influence on the performance?
-1
votes
1 answer

Multiclass classification with junk class

I would like to do multiclass classification but I'm in a weird spot, I'm basically trying to classify code as good or bad where there are multiple classes for bad code but there will only be one good class. It's almost like binary classification…
-1
votes
1 answer

Isolation Forest getting accuracy score 0.0

Edit: please share comments as I'm learning to post good questions I'm trying to train this dataset with IsolationForest(), I need to train this dataset, and use it in another dataset with altered qualities to predict the quality values and fetch…
-1
votes
1 answer

multiclass Vs multilabel classification text dataset

As you see in the figure our textual data need to be classified among some diseases; knowing that a symptom (in the column: label) can be used for multiple diseases. So, in this case, what type of classification is considered in this problem? Is it…
-1
votes
1 answer

calculation of performance metrics in the multi-class classification

I am using XGBoost classifier that classify X-ray images into 3 classes. My problem is that when I calculate these values manually (by hand) using the confusion matrix, it shows me values that are not as they are in the classification report. Even…
-1
votes
1 answer

how to calculate the model accuracy manually?

I have a a confusion matrix and a classification report as shown in the attached image. My question is, how this accuracy is calculated? I have tried many formula to calculate the accuracy by hand but no one give me the right one? please, I need a…
-1
votes
1 answer

Py4JJavaError: An error occurred while calling o735.fit

I tried to fit a Naive Bayes classifier in Pyspark but I'm getting the following error whenever I try to run my code: Py4JJavaError: An error occurred while calling o735.fit. : org.apache.spark.SparkException: Job aborted due to stage failure: Task…
-1
votes
1 answer

Machine Learning algorithms result in low accuracy in Pyspark

I use a dataset available in this link and machine learning algorithms to classify 75 network traffic classes based on 87 feature (columns). The dataset consists of 3.577.296 instances (rows). First I index the label, standardize the columns that…
-1
votes
2 answers

suggest deep learning model for text topic classification

I have a dataset consisting of two columns [Text, topic_labels]. Topic_labels are of 6 categories for ex: [plants,animals,birds,insects etc] I want to build deep learning-based models in order to be able to classify topic_labels. so far I have…
-1
votes
1 answer

How to calculate precision ,recall & f1 score for multiclass? How can we use average='micro','macro' etc. in cross validation?

TypeError: unsupported operand type(s) for /: 'dict' and 'int' ` **Here is my code** x = df[header] clf=GaussianNB() scoring = { 'accuracy' : make_scorer(accuracy_score), 'precision' : make_scorer(precision_score,average =…