【发布时间】:2016-08-02 16:40:58
【问题描述】:
我正在使用 RapidMiner Studio 5.3 和“读取 CSV”运算符,并检查了“第一行作为名称”参数。之后我不能使用“重命名”或“设置角色”运算符,因为“属性名称未定义”。这就像它读起来很好,但它不会向前发送属性名称。
这是“读取 CSV”运算符之后断点发生的情况的元数据视图,您可以在其中看到他识别属性名称。
现在“设置角色”运算符找不到属性名称。
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="5.3.015">
<context>
<input/>
<output/>
<macros/>
</context>
<operator activated="true" class="process" compatibility="5.3.015" expanded="true" name="Process">
<process expanded="true">
<operator activated="true" class="read_csv" compatibility="5.3.015" expanded="true" height="60" name="Read CSV" width="90" x="179" y="75">
<parameter key="csv_file" value="C:\Users\lffreitas\Documents\tae.csv"/>
<list key="annotations"/>
<list key="data_set_meta_data_information"/>
</operator>
<operator activated="true" class="set_role" compatibility="5.3.015" expanded="true" height="76" name="Set Role" width="90" x="380" y="75">
<list key="set_additional_roles"/>
</operator>
<connect from_op="Read CSV" from_port="output" to_op="Set Role" to_port="example set input"/>
<connect from_op="Set Role" from_port="example set output" to_port="result 1"/>
<portSpacing port="source_input 1" spacing="0"/>
<portSpacing port="sink_result 1" spacing="0"/>
<portSpacing port="sink_result 2" spacing="0"/>
</process>
</operator>
</process>
有什么线索可以在这里发生吗?
【问题讨论】:
-
这就像它没有将元数据传递给输出。
-
如果在CSV读取后设置断点,示例集是什么样子的?
-
@awchisholm 很抱歉延迟回复。我编辑消息以显示正在发生的事情的图像。谢谢!
-
属性名有“a”、“b”、“c”等。
Set Role操作符可能需要一个不同的名称。根本原因是Read CSV操作符配置不正确。发布 XML 可能是解决问题的最佳方式。 -
仔细看,Set Role 操作符有问题——为此设置了哪些参数设置?
标签: rapidminer