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/> <output/> <macros/> </context> <operator activated="true" class="process" expanded="true" name="Root"> <description>Using a simple Naive Bayes classifier.</description> <process expanded="true" height="362" width="547"> <operator activated="true" class="retrieve" expanded="true" height="60" name="Retrieve" width="90" x="45" y="30"> <parameter key="repository_entry" value="//Samples/data/Iris"/> </operator> <operator activated="true" class="naive_bayes" expanded="true" height="76" name="NaiveBayes" width="90" x="179" y="30"/> <operator activated="true" class="multiply" expanded="true" height="94" name="Multiply" width="90" x="313" y="30"/> <operator activated="true" class="execute_script" expanded="true" height="76" name="Execute Script" width="90" x="447" y="30"> <parameter key="script" value=" import com.rapidminer.tools.Ontology; Model m = input[0]; Attribute[] attributes= new Attribute[1]; attributes[0] = AttributeFactory.createAttribute("String description", Ontology.STRING); MemoryExampleTable table = new MemoryExampleTable(attributes); DataRowFactory ROW_FACTORY = new DataRowFactory(0); String[] strings= new String[1]; strings[0]=m.getDistribution(0,0).toString(); DataRow row = ROW_FACTORY.create(strings, attributes); table.addDataRow(row);	 ExampleSet exampleSet = table.createExampleSet(); return exampleSet; "/> </operator> <connect from_op="Retrieve" from_port="output" to_op="NaiveBayes" to_port="training set"/> <connect from_op="NaiveBayes" from_port="model" to_op="Multiply" to_port="input"/> <connect from_op="Multiply" from_port="output 1" to_op="Execute Script" to_port="input 1"/> <connect from_op="Multiply" from_port="output 2" to_port="result 2"/> <connect from_op="Execute Script" from_port="output 1" 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>