RapidMiner替换范围内的数值

时间:2022-02-05 16:47:52

Using RapidMiner Studio 6 have to replace the attribute values that are outside a certain range, 0, and I know that operator can use (or combination of operators). For example, if I have to attribute values 1 2 3 4 5 6 7 and apply the operator for the range [3-5] I would be the values 0 0 3 4 5 0 0.

使用RapidMiner Studio 6必须替换超出特定范围0的属性值,并且我知道运算符可以使用(或运算符的组合)。例如,如果我必须将值1 2 3 4 5 6 7归属并应用范围[3-5]的运算符,那么我将是值0 0 3 4 5 0 0。

1 个解决方案

#1


I don't speak Spanish but Google translate leads me to think that you need to change the value of an attribute to zero if it is outside a certain range. You can use the Generate Attributes operator for this with if in the parameters section.

我不会说西班牙语,但Google翻译让我觉得如果属性超出一定范围,你需要将属性的值更改为零。您可以在参数部分中使用“生成属性”运算符。

If your attribute is called a2 and you want to change it to zero if its value is below 3 and above 5, the parameters to the Generate Attributes operator would look like this.

如果您的属性名为a2,并且您希望在其值低于3且大于5时将其更改为零,则Generate Attributes运算符的参数将如下所示。

attribute name: a2

属性名称:a2

function expressions: if(a2<3,0,if(a2>5,0,a2))

函数表达式:if(a2 <3,0,if(a2> 5,0,a2))

#1


I don't speak Spanish but Google translate leads me to think that you need to change the value of an attribute to zero if it is outside a certain range. You can use the Generate Attributes operator for this with if in the parameters section.

我不会说西班牙语,但Google翻译让我觉得如果属性超出一定范围,你需要将属性的值更改为零。您可以在参数部分中使用“生成属性”运算符。

If your attribute is called a2 and you want to change it to zero if its value is below 3 and above 5, the parameters to the Generate Attributes operator would look like this.

如果您的属性名为a2,并且您希望在其值低于3且大于5时将其更改为零,则Generate Attributes运算符的参数将如下所示。

attribute name: a2

属性名称:a2

function expressions: if(a2<3,0,if(a2>5,0,a2))

函数表达式:if(a2 <3,0,if(a2> 5,0,a2))