【问题标题】:In RapidMiner Read CSV operator not assigning attribute name在 RapidMiner 中读取 CSV 运算符未分配属性名称
【发布时间】: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


【解决方案1】:

执行以下操作: 在进程窗格中,查看右上角的 回形针 图标(编号 5)并单击它...这样就可以了。干杯;亚历克斯

【讨论】:

    【解决方案2】:

    Set Role 运算符没有选择属性,因此失败。通过从该运算符的参数中的下拉列表中选择属性名称来解决此问题。

    【讨论】:

    • 没有属性名可供选择,这就是问题所在。似乎“读取 CSV”没有将属性名称传递给下一个运算符。
    • 您可以直接在Set Role 运算符中键入您想要的属性名称。 Read CSV 运算符在 data set meta data information 参数中没有元数据集,因此它不知道如何读取数据,我想它所做的猜测不会正确传播。
    【解决方案3】:

    在进程窗格中,查看右上角的回形针图标(数字 5)并单击它...这样就可以了。干杯;亚历克斯

    这个答案帮助我解决问题。但是还有一个问题,就是“读取 URL”操作符不能将属性名传递给下一个操作符“重命名操作符”。所以日志中有一些消息。图片显示发生了什么 .

    【讨论】:

      猜你喜欢
      • 2018-04-25
      • 1970-01-01
      • 2023-03-16
      • 1970-01-01
      • 1970-01-01
      • 2021-12-09
      • 2021-12-06
      • 2022-01-22
      • 2021-11-13
      相关资源
      最近更新 更多