A program to recognize and reward our most engaged community members
<?xml version="1.0" encoding="UTF-8" standalone="no"?><process version="5.0"> <context> <input> <location/> </input> <output> <location/> <location/> </output> <macros/> </context> <operator activated="true" class="process" expanded="true" name="Process"> <process expanded="true" height="566" width="969"> <operator activated="true" class="generate_data" expanded="true" height="60" name="Generate Data" width="90" x="112" y="75"/> <operator activated="true" class="support_vector_machine" expanded="true" height="112" name="SVM" width="90" x="112" y="210"/> <operator activated="true" class="apply_model" expanded="true" height="76" name="Apply Model" width="90" x="313" y="210"> <list key="application_parameters"/> </operator> <operator activated="true" class="rename" expanded="true" height="76" name="Rename" width="90" x="447" y="210"> <parameter key="old_name" value="prediction(label)"/> <parameter key="new_name" value="nu"/> </operator> <operator activated="true" class="set_role" expanded="true" height="76" name="Set Role" width="90" x="581" y="210"> <parameter key="name" value="nu"/> </operator> <operator activated="true" class="generate_attributes" expanded="true" height="76" name="Generate Attributes" width="90" x="715" y="210"> <list key="function_descriptions"> <parameter key="test" value="nu*att1"/> </list> </operator> <connect from_op="Generate Data" from_port="output" to_op="SVM" to_port="training set"/> <connect from_op="SVM" from_port="model" to_op="Apply Model" to_port="model"/> <connect from_op="SVM" from_port="exampleSet" to_op="Apply Model" to_port="unlabelled data"/> <connect from_op="Apply Model" from_port="labelled data" to_op="Rename" to_port="example set input"/> <connect from_op="Rename" 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="Generate Attributes" to_port="example set input"/> <connect from_op="Generate Attributes" 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>
haddock wrote:You can rename and change the role of the attribute from prediction to regular, then it becomes usable, like this...
It's the example you posted, but it reads a saved model.
<?xml version="1.0" encoding="UTF-8" standalone="no"?><process version="5.0"> <context> <input> <location/> </input> <output> <location/> <location/> <location/> </output> <macros/> </context> <operator activated="true" class="process" expanded="true" name="Process"> <process expanded="true" height="415" width="884"> <operator activated="true" class="generate_data" expanded="true" height="60" name="Generate Data (2)" width="90" x="112" y="30"/> <operator activated="true" class="support_vector_machine" expanded="true" height="112" name="SVM" width="90" x="211" y="83"/> <operator activated="true" class="write_model" expanded="true" height="60" name="Write Model" width="90" x="367" y="76"> <parameter key="model_file" value="test"/> </operator> <operator activated="true" class="read_model" expanded="true" height="60" name="Read Model" width="90" x="112" y="210"> <parameter key="model_file" value="test"/> </operator> <operator activated="true" class="apply_model" expanded="true" height="76" name="Apply Model" width="90" x="313" y="210"> <list key="application_parameters"/> </operator> <operator activated="true" class="rename" expanded="true" height="76" name="Rename" width="90" x="447" y="210"> <parameter key="old_name" value="prediction(label)"/> <parameter key="new_name" value="nu"/> </operator> <operator activated="true" class="set_role" expanded="true" height="76" name="Set Role" width="90" x="581" y="210"> <parameter key="name" value="nu"/> </operator> <operator activated="true" class="generate_attributes" expanded="true" height="76" name="Generate Attributes" width="90" x="715" y="210"> <list key="function_descriptions"> <parameter key="test" value="nu*att1"/> </list> </operator> <connect from_op="Generate Data (2)" from_port="output" to_op="SVM" to_port="training set"/> <connect from_op="SVM" from_port="model" to_op="Write Model" to_port="input"/> <connect from_op="SVM" from_port="exampleSet" to_op="Apply Model" to_port="unlabelled data"/> <connect from_op="Write Model" from_port="through" to_port="result 2"/> <connect from_op="Read Model" from_port="output" to_op="Apply Model" to_port="model"/> <connect from_op="Apply Model" from_port="labelled data" to_op="Rename" to_port="example set input"/> <connect from_op="Rename" 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="Generate Attributes" to_port="example set input"/> <connect from_op="Generate Attributes" 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"/> <portSpacing port="sink_result 3" spacing="0"/> </process> </operator></process>
haddock wrote:It must be your model then, as the following works fine...
<?xml version="1.0" encoding="UTF-8" standalone="no"?><process version="5.0"> <context> <input> <location/> </input> <output> <location/> <location/> <location/> </output> <macros/> </context> <operator activated="true" class="process" expanded="true" name="Process"> <process expanded="true" height="650" width="890"> <operator activated="true" class="generate_data" expanded="true" height="60" name="Generate Data (2)" width="90" x="45" y="30"/> <operator activated="true" class="support_vector_machine" expanded="true" height="112" name="SVM" width="90" x="179" y="75"/> <operator activated="true" class="write_model" expanded="true" height="60" name="Write Model" width="90" x="447" y="75"> <parameter key="model_file" value="test"/> </operator> <operator activated="true" class="read_model" expanded="true" height="60" name="Read Model" width="90" x="45" y="210"> <parameter key="model_file" value="test"/> </operator> <operator activated="true" breakpoints="after" class="apply_model" expanded="true" height="76" name="Apply Model" width="90" x="313" y="210"> <list key="application_parameters"/> </operator> <operator activated="true" class="rename" expanded="true" height="76" name="Rename" width="90" x="447" y="210"> <parameter key="old_name" value="prediction(label)"/> <parameter key="new_name" value="nu"/> </operator> <operator activated="true" class="set_role" expanded="true" height="76" name="Set Role" width="90" x="581" y="210"> <parameter key="name" value="nu"/> </operator> <operator activated="true" class="generate_attributes" expanded="true" height="76" name="Generate Attributes" width="90" x="715" y="210"> <list key="function_descriptions"> <parameter key="test" value="nu*att1"/> </list> </operator> <connect from_op="Generate Data (2)" from_port="output" to_op="SVM" to_port="training set"/> <connect from_op="SVM" from_port="model" to_op="Write Model" to_port="input"/> <connect from_op="SVM" from_port="exampleSet" to_op="Apply Model" to_port="unlabelled data"/> <connect from_op="Write Model" from_port="through" to_port="result 2"/> <connect from_op="Read Model" from_port="output" to_op="Apply Model" to_port="model"/> <connect from_op="Apply Model" from_port="labelled data" to_op="Rename" to_port="example set input"/> <connect from_op="Rename" 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="Generate Attributes" to_port="example set input"/> <connect from_op="Generate Attributes" 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"/> <portSpacing port="sink_result 3" spacing="0"/> </process> </operator></process>