Questions tagged [skmultilearn]

8 questions
3
votes
1 answer

MLKNN - __int__() takes 1 positional argument but 2 were given with fit method

I have two pandas dataframes. one df(or X) with word2vec embeddings, with shape (50000,200). and another dataframe (or sparse matrix) with 0s and 1s filled. this df is the output of sklearn.preprocessing.MultiLabelBinarizer, so filled with only 1s…
Naveen Reddy Marthala
  • 2,622
  • 4
  • 35
  • 67
2
votes
1 answer

How to convert BinaryRelevance.predict result to labels names?

I have created a small example using skmultilearn trying to do multilabel text classification: import skmultilearn from sklearn.feature_extraction.text import TfidfVectorizer import pandas as pd from scipy.sparse import csr_matrix from…
celsowm
  • 846
  • 9
  • 34
  • 59
2
votes
1 answer

Loading datasets in offline mode in sklearn and skmultilearn

I would like to use datasets: emotions, scene, and yeast in my project in anaconda (python 3.6.5). I have used the following codes: from skmultilearn.dataset import load_dataset X_train, y_train, feature_names, label_names =…
1
vote
1 answer

Iterative split of multilabel classification dataset in pandas dataframe

I have dataset which contains text column with string values and multiple column with value 1 or 0 (classified or no). I want to use skmultilearn to split this data with even distribution, but I got this error: KeyError: 'key of type tuple not found…
pbartkow
  • 126
  • 1
  • 10
1
vote
1 answer

How to fix ArrayMemoryError using BinaryRelevance even using csr_matrix?

I am trying to predict toxic comments using Toxic Comment data from kaggle: import skmultilearn, sys from sklearn.feature_extraction.text import TfidfVectorizer import pandas as pd from scipy.sparse import csr_matrix, issparse from…
celsowm
  • 846
  • 9
  • 34
  • 59
0
votes
1 answer

Matmul error when trying to predict a new text using skmultilearn.BinaryRelevance

I am trying to create a small example of multi label text classification: import skmultilearn from sklearn.feature_extraction.text import TfidfVectorizer import pandas as pd from scipy.sparse import csr_matrix from pandas.core.common import…
celsowm
  • 846
  • 9
  • 34
  • 59
0
votes
1 answer

How to use skmultilearn to train models on label specific data

I am using skmultilearn library to solve a multi-label machine learning problem. There are 5 labels with binary data (0 or 1). Sklearn logistic regression is being used as base classifier. But I need to set label specific features for each…
0
votes
1 answer

skmultilearn MLARAM raises Keyerror: 0

I recently discovered MLARAM classifier by Fernando Benites ; Elena Sapozhnikova. When trying to evaluate this classifier on a set of 11.000 documents. I used updated documentation from…