2014-10-20 56 views
0

我正在使用Rapidminer版本6進行數據分析。我正在嘗試讀取6000行的csv文件。當我在讀取csv操作符中配置元數據信息時,會提取數據以僅顯示元數據信息列表中的最後一個條目(列)。在處理XML代碼如下快速礦工 - 在讀取CSV操作員中的數據集元數據信息列表問題

<?xml version="1.0" encoding="UTF-8" standalone="no"?> 
<process version="6.1.000"> 
    <context> 
<input/> 
<output/> 
<macros/> 
    </context> 
    <operator activated="true" class="process" compatibility="6.1.000" expanded="true"  name="Process"> 
    <process expanded="true"> 
     <operator activated="true" class="read_csv" compatibility="6.1.000" expanded="true" height="60" name="Read CSV" width="90" x="45" y="30"> 
     <parameter key="csv_file" value="C:\Users\jeganathan.velu\Desktop\Book1.csv"/> 
    <parameter key="column_separators" value=","/> 
    <list key="annotations"/> 
    <list key="data_set_meta_data_information"> 
     <parameter key="1" value="interest_rate_bps.true.integer.regular"/> 
     <parameter key="1" value="Deposit.true.integer.regular"/> 
     <parameter key="2" value="Location.true.nominal.regular"/> 
    </list> 
    </operator> 
    <connect from_op="Read CSV" from_port="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> 

但該工具僅輸出最後一欄的位置,而不是全部的三列中的元信息列表中配置

如果我配置的元數據,10列那麼只有第十列數據從CSV

請求你的幫助,以找出是否我做錯了什麼或者這是一個錯誤讀?一個

由於事先 Jeganathan Velu。

+0

發佈您的代碼到目前爲止您所做的一切。 StackOverflow不是人們代表你寫代碼的地方。 – 2014-10-20 09:46:33

+0

對不起。我沒有提供足夠的信息..我編輯了原始文章,幷包含了快速代碼。 – 2014-10-20 10:05:15

+0

XML無效 - 我認爲您需要添加到最後。 – awchisholm 2014-10-20 12:00:06

回答

0

我在您的過程中看到問題。
如果您將屬性類型從「常規」更改爲「屬性」,那麼您會發現它的工作原理。我相信'常規'是常規屬性過去被引用的方式,但是此後(至少在ReadCSV運算符中)改變爲'屬性'。