Quantcast

Weka Classifier from MOA (API)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Weka Classifier from MOA (API)

carloscharx

Hi, i'm trying to develop a simple online algorithm using the API of MOA and a Weka Classifier (M5P). I'm trying to modify the default algorithm, but everything i do is wrong. Now, i have this piece of code:


WEKAClassifier learner = new WEKAClassifier();
learner.baseLearnerOption=new WEKAClassOption("classificador",'c',?????,"-l weka.classifiers.trees.M5P -R -M 4.0");

Acording to the API, in ????? i have to put the following:

                Class<?> requiredType

but i can't figure out what it is exactly. I'm not and expert in Java so sorry if it's trivial.

Using the GUI the algorithm works, but i need the API to repeat a lot of times the experiment.

Regards,

Carlos




_______________________________________________
Wekalist mailing list
Send posts to: [hidden email]
List info and subscription status: https://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Weka Classifier from MOA (API)

Marcus Müller
Hallo Herr Botsch,

Dienstag geht. Ich hatte ja den Freitag sowieso Urlaub wg. des Teamevents eingereicht und den Termin für morgen abgesagt. 
Kann es sein, dass die Absage nicht angekommen ist? Ich habe in der Vergangenheit nämlich schon einmal eine Absage für einen Termin von Ihnen  bekommen, welchen ich zuvor bereits selbst gecancelled hatte. 

Viele Grüße,
Marcus Müller

Am 09.02.2017 um 10:46 schrieb Carlos Mediavilla Pastor <[hidden email]>:

Hi, i'm trying to develop a simple online algorithm using the API of MOA and a Weka Classifier (M5P). I'm trying to modify the default algorithm, but everything i do is wrong. Now, i have this piece of code:


WEKAClassifier learner = new WEKAClassifier();
learner.baseLearnerOption=new WEKAClassOption("classificador",'c',?????,"-l weka.classifiers.trees.M5P -R -M 4.0");

Acording to the API, in ????? i have to put the following:

                Class<?> requiredType

but i can't figure out what it is exactly. I'm not and expert in Java so sorry if it's trivial.

Using the GUI the algorithm works, but i need the API to repeat a lot of times the experiment.

Regards,

Carlos



_______________________________________________
Wekalist mailing list
Send posts to: [hidden email]
List info and subscription status: https://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

_______________________________________________
Wekalist mailing list
Send posts to: [hidden email]
List info and subscription status: https://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Weka Classifier from MOA (API)

Eibe Frank-2
Administrator
In reply to this post by carloscharx
This is probably more suitable for the MOA user group:

  https://groups.google.com/forum/#!forum/moa-users

Cheers,
Eibe

> On 9/02/2017, at 10:46 PM, Carlos Mediavilla Pastor <[hidden email]> wrote:
>
> Hi, i'm trying to develop a simple online algorithm using the API of MOA and a Weka Classifier (M5P). I'm trying to modify the default algorithm, but everything i do is wrong. Now, i have this piece of code:
>
> WEKAClassifier learner = new WEKAClassifier();
> learner.baseLearnerOption=new WEKAClassOption("classificador",'c',?????,"-l weka.classifiers.trees.M5P -R -M 4.0");
>
> Acording to the API, in ????? i have to put the following:
>
>                 Class<?> requiredType
>
> but i can't figure out what it is exactly. I'm not and expert in Java so sorry if it's trivial.
>
> Using the GUI the algorithm works, but i need the API to repeat a lot of times the experiment.
>
> Regards,
>
> Carlos
>
>
>
> _______________________________________________
> Wekalist mailing list
> Send posts to: [hidden email]
> List info and subscription status: https://list.waikato.ac.nz/mailman/listinfo/wekalist
> List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

_______________________________________________
Wekalist mailing list
Send posts to: [hidden email]
List info and subscription status: https://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
Loading...