Using Filters
Filters can be used to change data files, e.g.
- delete first and second attributes
java weka.filters.AttributeFilter –R 1,2 –i iris.arff –o iris.new.arff
AttributeSelectionFilter lets you select a set of attributes using classes in the weka.attributeSelection package
java weka.filters.AttributeSelectionFilter –E weka.attributeSelection.InfoGainAttributeEval –i weather.arff
Other filters
DiscretizeFilter Discretizes a range of numeric attributes in the dataset into nominal attributes
NominalToBinaryFilter Converts nominal attributes into binary ones, replacing each attribute with k values with k-1 new binary attributes
NumericTransformFilter Transforms numeric attributes using given method
(java weka.filters. NumericTransformFilter –C java.lang.Math –M sqrt … )