【问题标题】:Rapid Miner - IF statementsRapid Miner - IF 语句
【发布时间】:2017-11-07 06:37:29
【问题描述】:

我在生成属性运算符中的 IF 函数表达式有一点问题。

这是我希望该功能具有的基本功能。

If VarX contains ".0", then remove this .0, else leave VarX unchanged

到目前为止,这是我在 Rapid Miner 中的函数表达式的语法。

if(contains(".0",VarX),replace(".0",VarX,""),VarX)

但是此语法无法正常工作,因为数据中的 ".0" 并未被替换。

【问题讨论】:

    标签: if-statement rapidminer


    【解决方案1】:

    参数排序不正确。

    试试下面的

    if(contains(VarX, ".0"), replace(VarX, ".0", ""),VarX)
    

    【讨论】:

      猜你喜欢
      • 2015-01-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-02-12
      • 2013-11-04
      • 1970-01-01
      • 2014-03-19
      • 1970-01-01
      相关资源
      最近更新 更多