Weka 归一化列 [英] Weka normalizing columns
问题描述
我有一个包含 14 个数字列的 ARFF 文件.我想分别对每一列执行标准化,即将每一列的值修改为 (actual_value - min(this_column))/(max(this_column) - min(this_column)
).因此,一列中的所有值都在 [0, 1]
范围内.一列的最小值和最大值可能与另一列的不同.
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.
我怎样才能用 Weka 过滤器做到这一点?
How can I do this with Weka filters?
谢谢
推荐答案
这可以使用
weka.filters.unsupervised.attribute.Normalize
应用此过滤器后,每列中的所有值都将在 [0, 1] 范围内
After applying this filter all values in each column will be in the range [0, 1]
这篇关于Weka 归一化列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!