A program to recognize and reward our most engaged community members
rm_main = function(){ library("unbalanced") res<-ubSmoteExs(iris, "Species",1500) return(res)}
<?xml version="1.0" encoding="UTF-8" standalone="no"?><process version="6.4.000"> <context> <input> </input> <output/> <macros/> </context> <operator activated="true" class="process" compatibility="6.4.000" expanded="true" name="Process"> <process expanded="true"> <operator activated="true" class="retrieve" compatibility="6.4.000" expanded="true" height="60" name="Retrieve Sonar" width="90" x="112" y="120"> <parameter key="repository_entry" value="//Samples/data/Sonar"/> </operator> <operator activated="true" class="x_validation" compatibility="6.4.000" expanded="true" height="112" name="Validation (5)" width="90" x="916" y="30"> <parameter key="sampling_type" value="2"/> <parameter key="use_local_random_seed" value="true"/> <process expanded="true"> <operator activated="true" class="subprocess" compatibility="6.4.000" expanded="true" height="76" name="Smote R (3)" width="90" x="112" y="120"> <process expanded="true"> <operator activated="true" class="filter_examples" compatibility="6.4.000" expanded="true" height="94" name="Filter Examples (5)" width="90" x="246" y="165"> <list key="filters_list"> <parameter key="filters_entry_key" value="class.equals.Mine"/> </list> </operator> <operator activated="true" class="r_scripting:execute_r" compatibility="6.4.000" expanded="true" height="76" name="Execute R (3)" width="90" x="581" y="120"> <parameter key="script" value="# rm_main is a mandatory function, # the number of arguments has to be the number of input ports (can be none) rm_main = function(data) { library(unbalanced) res<-ubSmoteExs(data, "class",1500) 	return(res) } "/> </operator> <operator activated="false" class="r:execute_script_r" compatibility="5.3.000" expanded="true" height="60" name="Execute Script (3)" width="90" x="581" y="30"> <parameter key="script" value="library(unbalanced) res<-ubSmoteExs(data, "class",1500)"/> <enumeration key="inputs"> <parameter key="name_of_variable" value="data"/> </enumeration> <list key="results"> <parameter key="res" value="Data Table"/> </list> </operator> <operator activated="true" class="set_role" compatibility="6.4.000" expanded="true" height="76" name="Set Role (4)" width="90" x="782" y="120"> <parameter key="attribute_name" value="class"/> <parameter key="target_role" value="label"/> <list key="set_additional_roles"/> </operator> <operator activated="true" class="append" compatibility="6.4.000" expanded="true" height="94" name="Append (3)" width="90" x="782" y="300"/> <operator activated="true" class="shuffle" compatibility="6.4.000" expanded="true" height="76" name="Shuffle (3)" width="90" x="983" y="300"/> <connect from_port="in 1" to_op="Filter Examples (5)" to_port="example set input"/> <connect from_op="Filter Examples (5)" from_port="example set output" to_op="Execute R (3)" to_port="input 1"/> <connect from_op="Filter Examples (5)" from_port="unmatched example set" to_op="Append (3)" to_port="example set 2"/> <connect from_op="Execute R (3)" from_port="output 1" to_op="Set Role (4)" to_port="example set input"/> <connect from_op="Set Role (4)" from_port="example set output" to_op="Append (3)" to_port="example set 1"/> <connect from_op="Append (3)" from_port="merged set" to_op="Shuffle (3)" to_port="example set input"/> <connect from_op="Shuffle (3)" from_port="example set output" to_port="out 1"/> <portSpacing port="source_in 1" spacing="0"/> <portSpacing port="source_in 2" spacing="0"/> <portSpacing port="sink_out 1" spacing="0"/> <portSpacing port="sink_out 2" spacing="0"/> </process> </operator> <operator activated="true" class="parallel_decision_tree" compatibility="6.4.000" expanded="true" height="76" name="Decision Tree (4)" width="90" x="380" y="120"> <parameter key="maximal_depth" value="4"/> <parameter key="apply_pruning" value="false"/> <parameter key="apply_prepruning" value="false"/> </operator> <connect from_port="training" to_op="Smote R (3)" to_port="in 1"/> <connect from_op="Smote R (3)" from_port="out 1" to_op="Decision Tree (4)" to_port="training set"/> <connect from_op="Decision Tree (4)" from_port="model" to_port="model"/> <portSpacing port="source_training" spacing="0"/> <portSpacing port="sink_model" spacing="0"/> <portSpacing port="sink_through 1" spacing="0"/> </process> <process expanded="true"> <operator activated="true" class="apply_model" compatibility="6.4.000" expanded="true" height="76" name="Apply Model (5)" width="90" x="45" y="30"> <list key="application_parameters"/> </operator> <operator activated="true" class="performance_binominal_classification" compatibility="6.4.000" expanded="true" height="76" name="Performance (4)" width="90" x="246" y="30"> <parameter key="AUC" value="true"/> <parameter key="sensitivity" value="true"/> <parameter key="specificity" value="true"/> </operator> <connect from_port="model" to_op="Apply Model (5)" to_port="model"/> <connect from_port="test set" to_op="Apply Model (5)" to_port="unlabelled data"/> <connect from_op="Apply Model (5)" from_port="labelled data" to_op="Performance (4)" to_port="labelled data"/> <connect from_op="Performance (4)" from_port="performance" to_port="averagable 1"/> <portSpacing port="source_model" spacing="0"/> <portSpacing port="source_test set" spacing="0"/> <portSpacing port="source_through 1" spacing="0"/> <portSpacing port="sink_averagable 1" spacing="0"/> <portSpacing port="sink_averagable 2" spacing="0"/> </process> </operator> <connect from_op="Retrieve Sonar" from_port="output" to_op="Validation (5)" to_port="training"/> <connect from_op="Validation (5)" from_port="model" to_port="result 1"/> <connect from_op="Validation (5)" from_port="training" to_port="result 2"/> <connect from_op="Validation (5)" from_port="averagable 1" to_port="result 3"/> <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"/> <portSpacing port="sink_result 4" spacing="0"/> </process> </operator></process>