Re: J48 classifier enforce a binary decision tree

Peter Reutemann <[email protected]>
Newsgroups gmane.comp.ai.weka
Message-ID <CAHoQ12LiJWtqFhE1gb9LY_yOddWYm3Q2sMTxN8i895KEF7JZ4g@mail.gmail.com>
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.