Questions tagged [multiclass-classification]
776 questions
0
votes
1 answer
Spark ML 2.0 - Evaluation Metrics available using spark.ml libraries similar to the spark.mllib
We are running a RandomForest model that creates 3 classifiers and we want to calculalte the AUC for use for evaluation of our model aside from using accuracy
Would there is an approach if we are using spark.ml? Currently we call …

E B
- 1,073
- 3
- 23
- 36
0
votes
3 answers
Any package in R which can Do Multi Class ,Oversampling,Under sampling,Both And SMOTE?
I am looking for Packages which can do multiclass oversampling, Undersampling or both techniques. I tried using ROSE package but it works only for binary class.
my target variable has 4 class and there % are.
"0"-70% "1"-15% "2"-10% "3"-5% "4"-5%

danishxr
- 69
- 2
- 12
0
votes
1 answer
Changing the Contents of a Tensor in TensorFlow
Before I continue, please excuse my ignorance. I have some experience programming before this, but my previous intuition has failed me presently.
Essentially, I need to expand a 1-D vector (size M x 1) of numbers ranging from 0...K, to a 2-D matrix…

j3private
- 13
- 5
0
votes
2 answers
scikit-learn fit function error
I'm trying to create a simple classifier for the CIFAR-10 data,
but when I'm trying to execute this python code:
import cPickle
from sklearn.multiclass import OneVsRestClassifier
from sklearn.svm import LinearSVC
def unpickle(file):
with…

hohihohi
- 1
- 1
0
votes
2 answers
CoreML converted keras model requests multi array input instead of image in Xcode
this is actually my first post on Stackoverflow and i am pretty new to Machine Learning. I am currently trying to train a convolutional neural network for simple image classification tasks, using VGG16.
It is based on this tutorial:…

BraveAnt
- 11
- 6
0
votes
0 answers
Handling imbalanced data with partial_fit and OneVsRestClassifier
Simply put, I have an imbalanced data set and I have to train using partial_fit because of the size. Some of the methods I use can't naturally handle multiclass problems, so I am wrapping them with a OneVsRestClassifier. However, this causes…

Frank
- 619
- 1
- 6
- 26
0
votes
2 answers
Multiclass text classification with python and nltk
I am given a task of classifying a given news text data into one of the following 5 categories - Business, Sports, Entertainment, Tech and Politics
About the data I am using:
Consists of text data labeled as one of the 5 types of news statement…

sujay_br
- 565
- 2
- 7
- 16
0
votes
1 answer
associate values to classes in Keras
How can I associate values to classes in Keras?
Input:
[[1, 2, 3], [4, 5, 6], [7, 8, 9]]
Expected:
[1, 2, 3], [4, 5, 6] associated with class 1
[7, 8, 9] associated with class 2
The problem is that [1, 2, 3], [4, 5, 6] come from one file and [7,…

Eduardo Andrade
- 111
- 1
- 1
- 13
0
votes
1 answer
Cannot feed value of shape (4,) for Tensor 'Placeholder_10:0', which has shape '(?, 4)'
Hej,
in the final step of my multi-class neural network for the IRIS data set, I am executing the following code:
steps = 2500
with tf.Session() as sess:
sess.run(init)
for i in range(steps):
…

Schnurrberto
- 41
- 6
0
votes
1 answer
multiclass prediction with text and numeric data
I am trying to create a prediction model (or classification) for a dataset which includes numeric and text features
Using Tf-IdfVectorizer, I have managed to convert text columns into lists
so each cell in the text column is a list of float numbers…

emrahozkan
- 193
- 1
- 3
- 15
0
votes
1 answer
LogisticRegression prediction probability
I am currently using LogisticRegression from scikit-learn in the problem of multi-class categorization. I've decided to use LogisticRegression since I've read a couple of articles describing it as a well-calibrated algorithm in terms of prediction…

ce57
- 128
- 8
0
votes
0 answers
spark performing worse than scikit-learn for MultiClass
Currently I have text data and I am trying to predict a class. In my case I have 60 classes to choose from. When I deploy the model in random forest using scikit-learn, I get an f1 score of 78%.
However, I try to setup the model in pyspark and only…

dixie.0312
- 1
- 1
0
votes
1 answer
How I supposed to make program to stop and wait for something? JAVA
got a problem here, trying to create a login to database system at the moment. I have to classes : UserLogManagerMainWindow and DatabaseConnectionFrame. My program is about log management. I want to make a database connection…

Ervinas34
- 133
- 10
0
votes
2 answers
Accuracy Score for a vector of predictions using Logistic Regression in Python
I'm doing the multiclass classification using Logistic Regression approach. Basically I know that if I use accuracy_score () function (for example, from sklearn library) it will calculate me the accuracy of distinct value to distinct value like…

Keithx
- 2,994
- 15
- 42
- 71
0
votes
1 answer
Extract topics from SMS messages
I have a dataset of SMS messages which is ill formatted and sparse. I tried to use topic modeling to get all the possible topics in each message with the probability of each associated topic. I need the probability to be able to arrange or rank each…

user3379762
- 29
- 5