Search code examples
javaweka

How to convert numeric attributes to binary in weka using java?


I'd like to convert my numeric attributes to binary in order to use attribute selection.

and for using J48 tree, numeric types are not allowed.

so I want to convert the type of the attributes.

How can I do this in java?

Thank you in advance, :)


Solution

  • You can use weka framework NumericToBinary class for this.

    NumericToBinary class