Questions tagged [scikit-multilearn]

scikit-multilearn is a Python module capable of performing multi-label learning tasks. It is built on-top of various scientific Python packages (numpy, scipy) and follows a similar API to that of scikit-learn.

28 questions
0
votes
0 answers

How to perform train-val-test (3 way) split on multi-label data

I'm trying to split a multi-label dataset into train, val and test datasets. I want to do something similar to from skmultilearn.model_selection.iterative_stratification import IterativeStratification def iterative_train_test_split(X, y,…
0
votes
0 answers

Options for WEKA classifier in scikit-multilearn MEKA wrapper

I'm trying to train multi label classifiers in scikit-multilearn through the MEKA wrapper. In MEKA, after selecting your multi label classifer, you select a WEKA single label classifier to implement it with. In the MEKA GUI, you can also alter the…
0
votes
0 answers

Scikit-learn does not show progress after fit

I'm facing an issue with scikit-learn version 1.0.2: model = OneVsRestClassifier(RandomForestClassifier()) parameters = {'estimator__n_estimators': [50, 100, 200], 'estimator__criterion': ['gini', 'entropy'], …
Egorsky
  • 179
  • 1
  • 11
0
votes
0 answers

Error in sklearn : grid_ridge_m.cv_results_

I am using scikit-learn version is 0.22.1. and I am getting error at grid_scores(0.18) and cv_results(0.18+) since I have sklearn 0.22 I used cv_result.. fig,ax= plt.subplots() fig.set_size_inches(12,5) #df =…
Shiv948
  • 469
  • 5
  • 13
0
votes
0 answers

Saving Keras model and weights

Im using Azure ML Studio to create an automated ML pipeline. I've successfully gotten my model to be trained and tested in Azure, but it fails on model.to_json() and model.save_weights(). I believe these functions do not exist on my model as…
0
votes
1 answer

AttributeError: 'BinaryRelevance' object has no attribute 'classifiers'

I'm trying to classify datas (emotions) using BinaryRelevance and SVC. This code is in http://scikit.ml/tutorial.html from skmultilearn.dataset import load_dataset X_train, y_train, feature_names, label_names = load_dataset('emotions',…
0
votes
0 answers

Getting error, while using numpy.concatenate

So basically I am having two numpy arrays x_chunk and y_chunk of dimensions [10,512,512,50] each. I converted them, to dimensions [10,13107200] using the code: x_chunk=x_chunk.reshape(10,13107200) y_chunk=y_chunk.reshape(10,13107200) Now I am using…
Prvt_Yadav
  • 324
  • 1
  • 6
  • 20
0
votes
1 answer

Scikit-multilearn MEKA-Wrapper: meka.classifiers.multilable.meta.CM

I'm currently using scikit-multilearn for multilabel classification. I have to use meka.classifiers.multilabel.CM as the meka_classifier. But when I run my Code, I get different Errors and I don't understand why.. meka = Meka( …
SomeDude
  • 11
  • 4
0
votes
1 answer

Can scikit-multilearn handle multi-target regression task?

I would like to know whether scikit-multilearn can handle multiple-output regression task. If not, can you recommend another tool that provides a wide range of algorithms for evaluation? Thank you, Bundit
user3464608
  • 33
  • 1
  • 6
0
votes
1 answer

How to use package scikit-multilearn (MlKnn method)

I am using the MlKnn method and I am able to fit the classifier and to make predictions through the command classifier.predict(Test). The result is a scipy.sparse.lil.lil_matrix which has only the predictions itself. I don't understand how to…
Logic_Problem_42
  • 229
  • 2
  • 11
0
votes
2 answers

How to fix NameError: name 'X_train' is not defined?

I am running the [code] of multi-label classification1.how to fix the NameError that the "X_train" is not defined.the python code is given below. import scipy from scipy.io import arff data, meta =…
0
votes
1 answer

specify priors in multi-label Naive Bayes in python scikit-learn

I am working on a multi-label classification. I used GaussianNB function on python scikit-learn. The target is an array with (N, L) shape, where L is the number of classes and N is the number of observations. I used three ways to deal with…
0
votes
1 answer

How to import "scikit-multilearn" python library in Azure Machine learning

We are trying to import "scikit-multilearn" library in python script and we are using this python script in Azure machine learning algorithm to achieve our goal. We have written our script in jupyter notebook and running our script in…
user8579066
  • 31
  • 1
  • 5
1
2