Info
Cette question est clôturée. Rouvrir pour modifier ou répondre.
how to call wekagp from matlab?pls help
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
javaaddpath('\weka.jar');
clear all
clc
import weka.classifiers.Classifier
import weka.classifiers.trees.J48
import weka.classifiers.Evaluation;
% calling classifier from matlab
v1 = java.lang.String('-t');
v2 = java.lang.String('train.arff');
v3 = java.lang.String('-T');
v4 = java.lang.String('test.arff');
prm = cat(1,v1,v2,v3,v4);
weka.classifiers.Evaluation.evaluateModel(javaObject('weka.classifiers.trees.J48'),prm);
and im getting error as
java exception
weka exception:keyword@relation excepted
1 commentaire
Réponses (0)
Cette question est clôturée.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!