Incompatible roles
Vrabec
New Altair Community Member
Hello,
i am trying to visualize test set data and prediction of Holt Winters with use of union operator. I have splited the data and used the same conditions in set role for both data sets, but still get an error "Incompatible roles" for label attribute.
<?xml version="1.0" encoding="UTF-8"?><process version="10.1.001">
<context>
<input/>
<output/>
<macros/>
</context>
<operator activated="true" class="process" compatibility="9.4.000" expanded="true" name="Process" origin="GENERATED_TUTORIAL">
<parameter key="logverbosity" value="init"/>
<parameter key="random_seed" value="2001"/>
<parameter key="send_mail" value="never"/>
<parameter key="notification_email" value=""/>
<parameter key="process_duration_for_mail" value="30"/>
<parameter key="encoding" value="SYSTEM"/>
<process expanded="true">
<operator activated="true" class="retrieve" compatibility="10.1.001" expanded="true" height="68" name="Retrieve podatkiDnevni171819" width="90" x="45" y="34">
<parameter key="repository_entry" value="../Podatki/DnevniPodatki171819/podatkiDnevni171819"/>
</operator>
<operator activated="true" class="blending:set_role" compatibility="10.1.001" expanded="true" height="82" name="Set Role" width="90" x="179" y="34">
<list key="set_roles">
<parameter key="ATP_Base" value="label"/>
<parameter key="Date" value="id"/>
</list>
</operator>
<operator activated="true" class="filter_examples" compatibility="10.1.001" expanded="true" height="103" name="Filter Examples (2)" width="90" x="313" y="34">
<parameter key="parameter_expression" value=""/>
<parameter key="condition_class" value="custom_filters"/>
<parameter key="invert_filter" value="false"/>
<list key="filters_list">
<parameter key="filters_entry_key" value="Date.le.01/01/2019"/>
</list>
<parameter key="filters_logic_and" value="true"/>
<parameter key="filters_check_metadata" value="true"/>
</operator>
<operator activated="true" class="time_series:holt-winters_trainer" compatibility="10.1.000" expanded="true" height="82" name="Holt-Winters" width="90" x="514" y="34">
<parameter key="time_series_attribute" value="ATP_Base"/>
<parameter key="has_indices" value="true"/>
<parameter key="indices_attribute" value="Date"/>
<parameter key="sort_time_series" value="true"/>
<parameter key="alpha:_coefficient_for_level_smoothing" value="0.5"/>
<parameter key="beta:_coefficient_for_trend_smoothing" value="0.1"/>
<parameter key="gamma:_coefficient_for_seasonality_smoothing" value="0.5"/>
<parameter key="period:_length_of_one_period" value="12"/>
<parameter key="seasonality_model" value="additive"/>
</operator>
<operator activated="true" class="time_series:apply_forecast" compatibility="10.1.000" expanded="true" height="82" name="Apply Forecast" width="90" x="648" y="34">
<parameter key="forecast_horizon" value="30"/>
<parameter key="add_original_time_series" value="true"/>
<parameter key="add_combined_time_series" value="true"/>
</operator>
<operator activated="false" class="blending:generate_columns" compatibility="10.1.001" expanded="true" height="82" name="Generate Attributes" width="90" x="380" y="442">
<list key="function_descriptions"/>
<parameter key="keep_all_columns" value="true"/>
</operator>
<operator activated="false" class="retrieve" compatibility="10.1.001" expanded="true" height="68" name="Retrieve podatkiDnevni171819 (2)" width="90" x="380" y="340">
<parameter key="repository_entry" value="../Podatki/DnevniPodatki171819/podatkiDnevni171819"/>
</operator>
<operator activated="true" class="blending:set_role" compatibility="10.1.001" expanded="true" height="82" name="Set Role (2)" width="90" x="648" y="340">
<list key="set_roles">
<parameter key="Date" value="id"/>
<parameter key="ATP_Base" value="label"/>
</list>
</operator>
<operator activated="true" class="union" compatibility="10.1.001" expanded="true" height="82" name="Union" width="90" x="916" y="34"/>
<connect from_op="Retrieve podatkiDnevni171819" from_port="output" to_op="Set Role" to_port="example set input"/>
<connect from_op="Set Role" from_port="example set output" to_op="Filter Examples (2)" to_port="example set input"/>
<connect from_op="Filter Examples (2)" from_port="example set output" to_op="Holt-Winters" to_port="example set"/>
<connect from_op="Filter Examples (2)" from_port="original" to_op="Set Role (2)" to_port="example set input"/>
<connect from_op="Holt-Winters" from_port="forecast model" to_op="Apply Forecast" to_port="forecast model"/>
<connect from_op="Apply Forecast" from_port="example set" to_op="Union" to_port="example set 1"/>
<connect from_op="Set Role (2)" from_port="example set output" to_op="Union" to_port="example set 2"/>
<connect from_op="Union" from_port="union" 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"/>
<description align="center" color="yellow" colored="false" height="145" resized="false" width="180" x="271" y="123">Building a Holt-winters forecast model for the monthly milk production.<br/><br/>As there are monthly data over several years, the period is 12, one year.</description>
</process>
</operator>
</process>
Tagged:
0
Answers
-
Perhaps share the data file? Its easier to troubleshoot.0