首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >RapidMiner TimeSeries预测

RapidMiner TimeSeries预测
EN

Stack Overflow用户
提问于 2016-04-28 14:19:16
回答 1查看 1.3K关注 0票数 0

我正在与RapidMiner Windowing operator一起工作,以便预测公司未来的收入价值。

数据集包含每个月的值,因此我使用的窗口大小为12。但是,我不能提前知道3个月内的值。我认为"horizon“参数可以提前选择要预测的时间单位数,但这不起作用。

数据集示例:

代码语言:javascript
复制
date    value
2016-01-01  5,0
2016-02-01  15,0
2016-03-01  10,0
2016-04-01  20,0
2016-05-01  15,0
2016-06-01  25,0
2016-07-01  20,0
2016-08-01  30,0
2016-09-01  25,0
2016-10-01  35,0

我应该怎么做才能预测未来的一些价值??假设2016-11-01和2016-12-01的值??

正如@awchisholm提出的,这里是两个窗口过程。然而,我不知道预测未来几个月的值所需的参数。

代码语言:javascript
复制
    <?xml version="1.0" encoding="UTF-8" standalone="no"?><process version="7.1.000">
  <context>
    <input/>
    <output/>
    <macros/>
  </context>
  <operator activated="true" class="process" compatibility="7.1.000" expanded="true" name="Process">
    <process expanded="true">
      <operator activated="true" class="read_excel" compatibility="7.1.000" expanded="true" height="68" name="Read Excel" width="90" x="45" y="34">
        <parameter key="excel_file" value="D:\Users\iesnaola\Desktop\prueba.xlsx"/>
        <parameter key="imported_cell_range" value="A1:B11"/>
        <parameter key="first_row_as_names" value="false"/>
        <list key="annotations">
          <parameter key="0" value="Name"/>
        </list>
        <list key="data_set_meta_data_information"/>
      </operator>
      <operator activated="true" class="set_role" compatibility="7.1.000" expanded="true" height="82" name="Set Role" width="90" x="179" y="34">
        <parameter key="attribute_name" value="date"/>
        <parameter key="target_role" value="id"/>
        <list key="set_additional_roles"/>
      </operator>
      <operator activated="true" class="series:windowing" compatibility="5.3.000" expanded="true" height="82" name="Windowing for Training" width="90" x="313" y="34">
        <parameter key="window_size" value="5"/>
        <parameter key="create_label" value="true"/>
        <parameter key="label_attribute" value="value"/>
      </operator>
      <operator activated="true" class="series:windowing" compatibility="5.3.000" expanded="true" height="82" name="Windowing for Test (2)" width="90" x="313" y="136">
        <parameter key="window_size" value="5"/>
      </operator>
      <connect from_op="Read Excel" from_port="output" to_op="Set Role" to_port="example set input"/>
      <connect from_op="Set Role" from_port="example set output" to_op="Windowing for Training" to_port="example set input"/>
      <connect from_op="Windowing for Training" from_port="example set output" to_port="result 1"/>
      <connect from_op="Windowing for Training" from_port="original" to_op="Windowing for Test (2)" to_port="example set input"/>
      <connect from_op="Windowing for Test (2)" from_port="example set output" to_port="result 2"/>
      <portSpacing port="source_input 1" spacing="0"/>
      <portSpacing port="sink_result 1" spacing="0"/>
      <portSpacing port="sink_result 2" spacing="0"/>
      <portSpacing port="sink_result 3" spacing="0"/>
    </process>
  </operator>
</process>
EN

回答 1

Stack Overflow用户

发布于 2016-04-28 20:34:11

没有数据很难知道,所以这里有一个可重现的示例过程,展示了窗口化以及horizon参数的使用。如果要用作标签的属性已经是标签,则此方法有效。

代码语言:javascript
复制
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="7.0.001">
  <context>
    <input/>
    <output/>
    <macros/>
  </context>
  <operator activated="true" class="process" compatibility="7.0.001" expanded="true" name="Process">
    <process expanded="true">
      <operator activated="true" class="retrieve" compatibility="7.0.001" expanded="true" height="68" name="Retrieve Iris" width="90" x="45" y="34">
    <parameter key="repository_entry" value="//Samples/data/Iris"/>
      </operator>
      <operator activated="true" class="select_attributes" compatibility="7.0.001" expanded="true" height="82" name="Select Attributes" width="90" x="45" y="136">
    <parameter key="attribute_filter_type" value="subset"/>
    <parameter key="attributes" value="id"/>
    <parameter key="include_special_attributes" value="true"/>
      </operator>
      <operator activated="true" class="generate_copy" compatibility="7.0.001" expanded="true" height="82" name="Generate Copy" width="90" x="45" y="238">
    <parameter key="attribute_name" value="id"/>
    <parameter key="new_name" value="idcopy"/>
      </operator>
      <operator activated="true" class="set_role" compatibility="7.0.001" expanded="true" height="82" name="Set Role" width="90" x="246" y="34">
    <parameter key="attribute_name" value="id"/>
    <list key="set_additional_roles">
      <parameter key="idcopy" value="label"/>
    </list>
      </operator>
      <operator activated="true" class="series:windowing" compatibility="5.3.000" expanded="true" height="82" name="Windowing" width="90" x="380" y="34">
    <parameter key="window_size" value="5"/>
    <parameter key="create_label" value="true"/>
    <parameter key="label_attribute" value="idcopy"/>
    <parameter key="horizon" value="5"/>
      </operator>
      <connect from_op="Retrieve Iris" from_port="output" to_op="Select Attributes" to_port="example set input"/>
      <connect from_op="Select Attributes" from_port="example set output" to_op="Generate Copy" to_port="example set input"/>
      <connect from_op="Generate Copy" from_port="example set output" to_op="Set Role" to_port="example set input"/>
      <connect from_op="Set Role" from_port="example set output" to_op="Windowing" to_port="example set input"/>
      <connect from_op="Windowing" from_port="example set output" to_port="result 1"/>
      <connect from_op="Windowing" from_port="original" to_port="result 2"/>
      <portSpacing port="source_input 1" spacing="0"/>
      <portSpacing port="sink_result 1" spacing="0"/>
      <portSpacing port="sink_result 2" spacing="0"/>
      <portSpacing port="sink_result 3" spacing="0"/>
    </process>
  </operator>
</process>

希望这可以作为一个开始。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36906717

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档