« Return to Thread: regarding nominal attributes

Re: regarding nominal attributes

by Peter Reutemann-3 :: Rate this Message:

Reply to Author | View in Thread

Please no top-posting, see mailing list etiquette why
(http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html).

> Will it affect if my "nominal" attribute has integer values only,no
> fractions.

Weka doesn't differentiate between integer and float, every number is
converted to a double and treated as such.

> Actually,my code is putting data from Lists  directly into ARFF
> file.So,it's a bit tedious to specify the nominal attributes specifically
> for each dataset.

Use the NumericToNominal filter (package
weka.filters.unsupervised.attribute ) to convert them to nominal
values. Or store your attributes as STRING attributes and then use the
StringToNominal filter (same package) to convert them.

[...]

Cheers, Peter
--
Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
http://www.cs.waikato.ac.nz/~fracpete/           Ph. +64 (7) 858-5174

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

 « Return to Thread: regarding nominal attributes