Re: J48 classifier enforce a binary decision tree
Eibe Frank <[email protected]>
| Newsgroups | gmane.comp.ai.weka |
|---|---|
| Message-ID | <CADehzLV7_+1YuOForzXpEMCCJ6e-SC4ufZi9N6byy06neGSMYQ@mail.gmail.com> |
Alternatively, one can set "useBinary" in J48 to value "true". (The command-line flag is -B.) Cheers, Eibe On Tue, 12 Oct 2021 at 10:15, Peter Reutemann <[email protected]> wrote: > > > is there a way to enforce that the decision tree that is > > produced by the J48 classifier is binary? > > Try preprocessing your data using the NominalToBinary filter: > https://weka.sourceforge.io/doc.dev/weka/filters/unsupervised/attribute/NominalToBinary.html > > Recommended approach: wrap your J48 classifier and NominalToBinary > filter in the FilteredClassifier meta classifier, then you don't have > to modify your original data. > > Cheers, Peter > -- > Peter Reutemann > Dept. of Computer Science > University of Waikato, NZ > +64 (7) 858-5174 (office) > +64 (7) 577-5304 (home office) > http://www.cms.waikato.ac.nz/~fracpete/ > http://www.data-mining.co.nz/ > _______________________________________________ > 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 _______________________________________________ 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