A program to recognize and reward our most engaged community members
<?xml version="1.0" encoding="UTF-8" standalone="no"?><process version="5.1.001"> <context> <input/> <output/> <macros/> </context> <operator activated="true" class="process" compatibility="5.1.001" expanded="true" name="Process"> <process expanded="true" height="341" width="614"> <operator activated="true" class="retrieve" compatibility="5.1.001" expanded="true" height="60" name="Retrieve" width="90" x="44" y="31"> <parameter key="repository_entry" value="SPY_training_data"/> </operator> <operator activated="true" class="naive_bayes" compatibility="5.1.001" expanded="true" height="76" name="Naive Bayes" width="90" x="282" y="21"/> <operator activated="true" class="retrieve" compatibility="5.1.001" expanded="true" height="60" name="Retrieve (2)" width="90" x="112" y="120"> <parameter key="repository_entry" value="SPY_out_of_sample"/> </operator> <operator activated="true" class="apply_model" compatibility="5.1.001" expanded="true" height="76" name="Apply Model (2)" width="90" x="380" y="120"> <list key="application_parameters"/> </operator> <connect from_op="Retrieve" from_port="output" to_op="Naive Bayes" to_port="training set"/> <connect from_op="Naive Bayes" from_port="model" to_op="Apply Model (2)" to_port="model"/> <connect from_op="Retrieve (2)" from_port="output" to_op="Apply Model (2)" to_port="unlabelled data"/> <connect from_op="Apply Model (2)" from_port="labelled data" 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>
String nominalValue = attribute.getMapping().mapIndex(0); // returns "regio"int index = overlayedMapping.getIndex(nominalValue); // returns 1if (index < 0) { // FALSE return value; } else { return index; // returns 1}
String nominalValue = attribute.getMapping().mapIndex(0); // returns "spaceship"int index = overlayedMapping.getIndex(nominalValue); // returns -1if (index < 0) { // TRUE return value; // returns 0 } else { return index;}
String nominalValue = attribute.getMapping().mapIndex(1); // returns "spaceship"int index = overlayedMapping.getIndex(nominalValue); // returns -1if (index < 0) { // TRUE return value; // returns 1} else { return index;}
Simon Fischer wrote:Hi,we fixed the handling of the remapping which should solve the issue with other models as well. Please check with tonights SVN update or next release and close #857 if it does.Best,Simon