Re: C5.0 in Weka

Andrew Felipe Quijano <[email protected]> Wed, 20 Dec 2023 03:35:51 -0500
Newsgroups gmane.comp.ai.weka
Message-ID <CAN-7wMC0sF4Wxa7u8tPtbkomauGS76v1n1hJFT1DurTYmiZ9Ug@mail.gmail.com>
Hello,
Say I wanted to run Weka C5.0 in Java code directly instead of the GUI, how
could this be achieved? For example, using the code below and importing the
Weka jar file, I can create and manipulate the J48 tree, is there a code
equivalent for C5.0 importing the Weka jar file?

BinC45ModelSelection j48_model = new BinC45ModelSelection(2, train, true,
false);
ClassifierTree j48 = new C45PruneableClassifierTree(j48_model, true,
(float) 0.25, true, true, true);
j48.buildClassifier(train);

If one doesn't exist, how would one make the edits in Weka to allow this? I
am aware of a C implementation for C5.0 and maybe figured JNI might be the
best approach?
https://github.com/topepo/C5.0/tree/master

Thank you for your assistance!

Sincerely,

Andrew Quijano

_______________________________________________
Wekalist mailing list -- [email protected]
Send posts to [email protected]
To unsubscribe send an email to [email protected]
To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html