【问题标题】:RapidMiner: Access an Example of an ExampleSet by the Id-AttributeRapidMiner:通过 Id 属性访问 ExampleSet 的示例
【发布时间】:2014-08-20 14:11:02
【问题描述】:

我想从 id 属性中获取示例。 实际上,这个属性是一些常规属性,我用“SetRole”运算符将它转换为一个 id 属性,现在我想访问“ExecuteScript”运算符中的一些示例。所以我的过程是这样的: ExampleSet with some "text" regular Attribute -> 将其转换为 id Attribute with "SetRole" -> ScriptOperator 现在我想使用类似的东西:

ExampleSet es = input[0];
es.remapIds();
Example e = es.getExampleFromId("Text");

但显然 getExampleFromId() 只接受双值。但是,虽然“文本”的属性类型是“多项式”,但它似乎包含类似字符串的东西。 SetRole Operator 之后的 exampleSet 看起来非常好。所以我想知道如何从 id 访问示例。 (铸造不起作用) 帮助表示赞赏

编辑:好的,我现在明白了,id 不是 id-Attribute 的值,而只是 ExampleSet 中的实习生标识符。但我的问题仍然是如何通过 id-Attribute 访问 ExampleSet 的一行。

【问题讨论】:

    标签: java groovy attributes identifier rapidminer


    【解决方案1】:

    Filter Examples 运算符可用于过滤属性具有特定值的示例。也许这方面的代码可以作为在您自己的代码中执行此操作的基础。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-01
      • 2014-12-14
      • 1970-01-01
      • 1970-01-01
      • 2023-03-13
      • 1970-01-01
      相关资源
      最近更新 更多