A program to recognize and reward our most engaged community members
<process version="9.0.003"> <context> <input/> <output/> <macros/> </context> <operator activated="true" class="process" compatibility="9.0.003" expanded="true" name="Process"> <process expanded="true"> <operator activated="true" class="subprocess" compatibility="9.0.003" expanded="true" height="103" name="Subprocess" width="90" x="45" y="85"> <process expanded="true"> <operator activated="true" class="operator_toolbox:create_exampleset" compatibility="1.7.000" expanded="true" height="68" name="Create ExampleSet" width="90" x="45" y="34"> <parameter key="number_of_examples" value="104"/> <list key="function_descriptions"> <parameter key="time" value="date_add(date_parse("01/01/2000"),id-1,DATE_UNIT_WEEK)"/> <parameter key="weekly data" value="10*rand()"/> </list> <parameter key="add_id_attribute" value="true"/> <list key="numeric_series_configuration"/> <list key="date_series_configuration"/> <list key="date_series_configuration (interval)"/> </operator> <operator activated="true" class="set_role" compatibility="9.0.003" expanded="true" height="82" name="Set Role" width="90" x="179" y="34"> <parameter key="attribute_name" value="time"/> <parameter key="target_role" value="id"/> <list key="set_additional_roles"/> </operator> <operator activated="true" class="select_attributes" compatibility="9.0.003" expanded="true" height="82" name="Select Attributes" width="90" x="313" y="34"> <parameter key="attribute_filter_type" value="single"/> <parameter key="attribute" value="id"/> <parameter key="invert_selection" value="true"/> </operator> <operator activated="true" class="operator_toolbox:create_exampleset" compatibility="1.7.000" expanded="true" height="68" name="Create ExampleSet (2)" width="90" x="45" y="136"> <parameter key="number_of_examples" value="24"/> <list key="function_descriptions"> <parameter key="time" value="date_add(date_parse("01/01/2000"),id-1,DATE_UNIT_MONTH)"/> <parameter key="monthly data" value="100*rand()"/> </list> <parameter key="add_id_attribute" value="true"/> <list key="numeric_series_configuration"/> <list key="date_series_configuration"/> <list key="date_series_configuration (interval)"/> </operator> <operator activated="true" class="set_role" compatibility="9.0.003" expanded="true" height="82" name="Set Role (2)" width="90" x="179" y="136"> <parameter key="attribute_name" value="time"/> <parameter key="target_role" value="id"/> <list key="set_additional_roles"/> </operator> <operator activated="true" class="select_attributes" compatibility="9.0.003" expanded="true" height="82" name="Select Attributes (2)" width="90" x="313" y="136"> <parameter key="attribute_filter_type" value="single"/> <parameter key="attribute" value="id"/> <parameter key="invert_selection" value="true"/> </operator> <connect from_op="Create ExampleSet" from_port="output" to_op="Set Role" to_port="example set input"/> <connect from_op="Set Role" from_port="example set output" to_op="Select Attributes" to_port="example set input"/> <connect from_op="Select Attributes" from_port="example set output" to_port="out 1"/> <connect from_op="Create ExampleSet (2)" from_port="output" to_op="Set Role (2)" to_port="example set input"/> <connect from_op="Set Role (2)" from_port="example set output" to_op="Select Attributes (2)" to_port="example set input"/> <connect from_op="Select Attributes (2)" from_port="example set output" to_port="out 2"/> <portSpacing port="source_in 1" spacing="0"/> <portSpacing port="sink_out 1" spacing="0"/> <portSpacing port="sink_out 2" spacing="0"/> <portSpacing port="sink_out 3" spacing="0"/> </process> <description align="center" color="transparent" colored="false" width="126">Creates two ExampleSets, one with weekly data, one with monthly data</description> </operator> <operator activated="true" class="generate_attributes" compatibility="9.0.003" expanded="true" height="82" name="Generate Attributes" width="90" x="179" y="34"> <list key="function_descriptions"> <parameter key="flag weekly data" value=""true""/> </list> </operator> <operator activated="true" class="concurrency:join" compatibility="9.0.003" expanded="true" height="82" name="Join" width="90" x="313" y="85"> <parameter key="join_type" value="outer"/> <parameter key="use_id_attribute_as_key" value="true"/> <list key="key_attributes"/> </operator> <operator activated="true" class="sort" compatibility="9.0.003" expanded="true" height="82" name="Sort" width="90" x="447" y="85"> <parameter key="attribute_name" value="time"/> </operator> <operator activated="true" class="time_series:replace_missing_values" compatibility="9.1.000-BETA" expanded="true" height="68" name="Replace Missing Values (Series)" width="90" x="648" y="85"> <parameter key="attribute_filter_type" value="subset"/> <parameter key="attributes" value="weekly data|monthly data"/> <parameter key="has_indices" value="true"/> <parameter key="indices_attribute" value="time"/> <parameter key="replace_type_numerical" value="linear interpolation"/> <parameter key="ensure_finite_values" value="true"/> </operator> <operator activated="true" class="filter_examples" compatibility="9.0.003" expanded="true" height="103" name="Filter Examples" width="90" x="782" y="85"> <list key="filters_list"> <parameter key="filters_entry_key" value="flag weekly data.is_not_missing."/> </list> </operator> <operator activated="true" class="select_attributes" compatibility="9.0.003" expanded="true" height="82" name="Select Attributes (3)" width="90" x="916" y="85"> <parameter key="attribute_filter_type" value="single"/> <parameter key="attribute" value="original weekly data"/> <parameter key="invert_selection" value="true"/> </operator> <connect from_op="Subprocess" from_port="out 1" to_op="Generate Attributes" to_port="example set input"/> <connect from_op="Subprocess" from_port="out 2" to_op="Join" to_port="right"/> <connect from_op="Generate Attributes" from_port="example set output" to_op="Join" to_port="left"/> <connect from_op="Join" from_port="join" to_op="Sort" to_port="example set input"/> <connect from_op="Sort" from_port="example set output" to_op="Replace Missing Values (Series)" to_port="example set"/> <connect from_op="Replace Missing Values (Series)" from_port="example set" to_op="Filter Examples" to_port="example set input"/> <connect from_op="Filter Examples" from_port="example set output" to_op="Select Attributes (3)" to_port="example set input"/> <connect from_op="Select Attributes (3)" 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"/> <description align="center" color="transparent" colored="true" height="67" resized="false" width="126" x="158" y="139">Generate a flag attribute to used later in the filter</description> <description align="center" color="transparent" colored="true" height="229" resized="false" width="180" x="332" y="186">Perform an outer join using the id attribute (which is the time attribute).<br><br>The resulting ExampleSet will have missing values for the timestamps which don't occur in the original datasets<br/><br/>Use sort to sort again for the joint timestemps</description> <description align="center" color="transparent" colored="true" height="216" resized="true" width="286" x="674" y="199">Use Replace Missing Values with linear interpolation to fill the missing values. <br/><br/>Use Filter Examples with the flag attribute is not missing to reduce again to weekly timestamps.<br/><br/>Deselect the flag attribute. Now you have one ExampleSet with weekly data for both time series attributes.</description> </process> </operator> </process>