I have an attribute that I added using AddExpression filter, and now I want to change its values so that all negative values are set to zero. I tried using MathExpression filter like this:
MathExpression -E "ifelse(A > 0, A, 0)" -V -R 17
17 is the attribute index seen in weka Preprocess/Attributes. But after applying it, I can still see that minimum value for my attribute is -5, not 0 as expected. What am I doing wrong?
If it changes anything, I removed some attributes before applying this filter, so the attribute index changed