Questions tagged [multilabel-classification]

Multi-label classification refers to the problem in Machine Learning of assigning multiple target labels to each sample, where the labels represent a property of the sample point and need not be mutually exclusive.

844 questions
0
votes
1 answer

Steps to run multiple models in tensorflow

I have a NN model below in jupyter notebook: b = tf.Variable(tf.zeros([target_count])) W = tf.Variable(tf.zeros([feature_count, target_count])) y = tf.nn.softmax(tf.matmul(x,W) + b) cross_entropy = tf.reduce_mean(-tf.reduce_sum(y_ * tf.log(y),…
0
votes
0 answers

How to get the estimator result for each ova estimator in a multi class svm with scikit?

Is there a possibility to get the classification score for each ova estimator in a multi class SVM in scikit? The overall score of the muldi class SVM is not what i need. To be more specific. If i have a trained multi class SVM and i use it on my…
0
votes
1 answer

Tensorflow weighted vs sigmoid cross-entropy loss

I am trying to implement multi-label classification using TensorFlow (i.e., each output pattern can have many active units). The problem has imbalanced classes (i.e., much more zeros than ones in the labels distribution, which makes label patterns…
0
votes
1 answer

Fitting a Support Vector Classifier in scikit-learn with image data produces error

I'm trying to train an SVC classifier for image data. Yet, when I run this code: classifier = svm.SVC(gamma=0.001) classifier.fit(train_set, train_set_labels) I get this error: ValueError: setting an array element with a sequence. I produced the…
0
votes
1 answer

Python Machine Learning: class labels in a cycle to reflect correlations between classes

I have a time series that I want to predict (using Neural Network, but is not important) with machine learning in python. On top of using the info at previous values ($t-1$, $t-2$, ...etc) I want to use another variable: the hour of the day. Stupid…
0
votes
1 answer

is multi-label clasification for text only

I was working on a numeric dataset and apparently it is a multi variable output regression. I wanted to know if you can have a multi-label classification in a numeric dataset or it is strictly for text based. For Eg: Stackoverflow an categorize…
jason
  • 3,932
  • 11
  • 52
  • 123
0
votes
1 answer

How to predict multi-label dataset using svm

I'm using a dataset with all decimal values and timestamp which has the following features : 1. sno 2. timestamp 3. v1 4. v2 5. v3 I've the data for 5 months with timestamps for every minute. I need to predict if v1, v2 ,v3 is being used at…
0
votes
0 answers

Multi label OneVsRestClassifer doesn't return any labels for some observations

I am using a multi label logistic regression classifier using the OneVsRestClassifer wrapper, however I'm facing a problem where for some observations it doesn't return any labels and the predict_proba function returns all probabilities very close…
0
votes
1 answer

Create train and test variables from loaded arff file

I want perform multilabel classification. A have a dataset in arff format which I load. However I don't now how convert import data to X and y vectors in order to apply sklearn/train_test_split. How can I get X and y? data, meta =…
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…
0
votes
1 answer

Using Weights In Multilabel Matrix Instead Of Numbers

Suppose we have a multiclassification problem. The data matrix stores integers representing the labels. Would it be correct to build a matrix like that with the data as float() or some kind of probability like below: [[0.71561032442075889,…
sariii
  • 2,020
  • 6
  • 29
  • 57
0
votes
1 answer

Minor fluctuations in accuracy using KFold cross validation

I am testing a multi-label classification problem using textual features. I have a total of 1503 text documents. My model shows slight variations in the results each time I run the script manually. I am not sure if my model overfits or if this is…
0
votes
1 answer

ResourceExhaustedError: OOM when allocating tensor with shape[256,100000000]

I am using TensorFlow's Variable for my classification problem. The number of output classes are 1e8. n_inputs = 5000 n_classes = 1e8 features = tf.placeholder(tf.float32, [None, n_inputs]) labels = tf.placeholder(tf.float32, [None,…
0
votes
1 answer

multi-label text classification from single label dataset

I have a dataset with a single label per document like the example below. label text pay "i will pay now" finance "are you the finance guy?" law "lawyers and law" court "was at the court…
rescot
  • 325
  • 2
  • 18
0
votes
0 answers

Error:Argument must be a dense tensor. Dimensions of arrays passed to tensor flow. generalized conceptual

I have been struggling with understanding the data passed into tensor flow. I wanted to use tensor flow for classification. I have a dataframe, with 5 features(columns) my Xs and 89 rows (datapoints). I have a target variable 'y' in the 6th column…
amen
  • 45
  • 12