Search code examples
normalizationweka

Weka normalizing columns


I have an ARFF file containing 14 numerical columns. I want to perform a normalization on each column separately, that is modifying the values from each colum to (actual_value - min(this_column)) / (max(this_column) - min(this_column)). Hence, all values from a column will be in the range [0, 1]. The min and max values from a column might differ from those of another column.

How can I do this with Weka filters?

Thanks


Solution

  • This can be done using

    weka.filters.unsupervised.attribute.Normalize
    

    After applying this filter all values in each column will be in the range [0, 1]