Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Hyperparameters in Meka Agorithms#279

Unanswered
alinevalle asked this question inQ&A
Discussion options

Hello,

I'm trying to use Scikit-Multilearn to work with MEKA algorithms. I need to pass hyperparameters to both the multi-label and single-label algorithms. Here's my code:

from skmultilearn.ext import download_mekameka_classpath = download_meka()
from skmultilearn.dataset import load_datasetx_train, y_train, _, _ = load_dataset('scene', 'train')x_test, y_test, _, _ = load_dataset('scene', 'test')
from skmultilearn.ext import Mekameka = Meka(        meka_classifier = "meka.classifiers.multilabel.BR",        weka_classifier = "weka.classifiers.functions.MultilayerPerceptron -- -L 0.3 -N 500",         meka_classpath = meka_classpath,         java_command = 'C:/Program Files/Java/jdk-11.0.10/bin/java' )
meka.fit(x_train, y_train)predictions = meka.predict(x_test)

I have a problem with the prediction. The error "list index out of range" occurs. I have liac-arff installed.

Can someone help me?

You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
1 participant
@alinevalle
Converted from issue

This discussion was converted from issue #243 on March 14, 2023 16:49.


[8]ページ先頭

©2009-2025 Movatter.jp