Re: Problem with WEKA
Peter Reutemann <[email protected]> Wed, 26 Oct 2022 12:02:12 +1300
| Newsgroups | gmane.comp.ai.weka |
|---|---|
| Message-ID | <CAHoQ12JEWY6A88kDuHDggT_-5BXybWOK3G7JijpeTJkE-YSVAA@mail.gmail.com> |
> I am trying to classify some data using classifiers such as SMO, when i press start a message appears: New question = new post (with an appropriate subject). Don't reply to old posts. > Problem evaluating classifer weka.classifiers.SMO: > cannot handle string attributes > > The same error happen with other classifiers too. STRING attributes are use for textual attributes and most classifiers cannot work with them directly. If these attributes should be treated as NOMINAL ones, then you need to convert them using the StringToNominal filter: https://weka.sourceforge.io/doc.dev/weka/filters/unsupervised/attribute/StringToNominal.html If they indeed contain text, then you could turn them into numeric attributes using the StringToWordVector filter: https://weka.sourceforge.io/doc.dev/weka/filters/unsupervised/attribute/StringToWordVector.html Cheers, Peter -- Peter Reutemann Dept. of Computer Science University of Waikato, NZ https://www.cs.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