对 Weka 中的某些属性应用过滤器

Applying filter on some attributes in Weka

我正在尝试使用 Weka 对项目的一些数据进行分类。所以我需要通过 y=ln(x+1) 对单个属性进行对数变换。我使用 MathExpression 过滤器,我的表达式是 log(A+1)。我希望我的过滤器仅适用于单个属性,但它适用于所有属性。我如何仅应用过滤器单个属性。 提前致谢。

您可以 select 通过用逗号分隔的属性索引列表填充 "ignore range" 要作用的属性。

ignoreRange -- Specify range of attributes to act on. This is a comma separated list of attribute indices, with "first" and "last" valid values. Specify an inclusive range with "-". E.g: "first-3,5,6-10,last".

可以通过单击 GenericObjectEditor 中的 "More" 按钮找到此信息(示例如下所示)。