2
$\begingroup$

I have imported a csv file into Weka. One of the features has a value with minimum 0 and maximum 160. Now, I want to discretise that value into three ranges as you can see below:

Less than 6 > L

More than 6 and less than 20 > M

More than 20 > H

How can i do that?

$\endgroup$

1 Answer 1

1
$\begingroup$

Discretising or binning, very common. There is a filter for that in Weka. You'll find it under weka.filters.unsupervised.attribute.Discretise. It is in the GUI too.

You can find the documentation under: https://weka.sourceforge.io/doc.dev/weka/filters/unsupervised/attribute/Discretize.html

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.