A program to recognize and reward our most engaged community members
The method getNominalMapping() is not supprted by numeric attributes! You probably tried to execute an operator on anumeric data which is only able to handel nominal values.
<?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"> <parameter key="logverbosity" value="all"/> <parameter key="logfile" value="C:\AfterRuleAccoss.log"/> <parameter key="resultfile" value="C:\afterRuleAccos.res"/> <process expanded="true" height="404" width="915"> <operator activated="true" class="retrieve" expanded="true" height="60" name="Retrieve" width="90" x="30" y="53"> <parameter key="repository_entry" value="//Samples/data/Labor-Negotiations"/> </operator> <operator activated="true" class="replace_missing_values" expanded="true" height="94" name="Replace Missing Values" width="90" x="45" y="297"> <parameter key="attributes" value="duration|wage-inc-1st|wage-inc-2nd|wage-inc-3rd|working-hours|standby-pay|shift-differential|statutory-holidays"/> <list key="columns"/> </operator> <operator activated="true" class="discretize_by_frequency" expanded="true" height="94" name="Discretize" width="90" x="179" y="300"> <parameter key="range_name_type" value="short"/> </operator> <operator activated="true" class="nominal_to_binominal" expanded="true" height="94" name="Nominal to Binominal" width="90" x="380" y="300"> <parameter key="transform_binominal" value="true"/> </operator> <operator activated="true" breakpoints="before,after" class="fp_growth" expanded="true" height="76" name="FP-Growth" width="90" x="581" y="255"/> <operator activated="true" class="create_association_rules" expanded="true" height="60" name="Create Association Rules" width="90" x="726" y="263"/> <operator activated="true" class="write_excel" expanded="true" height="60" name="Write Excel" width="90" x="514" y="30"> <parameter key="excel_file" value="C:\result_afterRMVDiscretizeNom2BinomFPGrowth.xls"/> </operator> <connect from_op="Retrieve" from_port="output" to_op="Replace Missing Values" to_port="example set input"/> <connect from_op="Replace Missing Values" from_port="example set output" to_op="Discretize" to_port="example set input"/> <connect from_op="Discretize" from_port="example set output" to_op="Nominal to Binominal" to_port="example set input"/> <connect from_op="Nominal to Binominal" from_port="example set output" to_op="FP-Growth" to_port="example set"/> <connect from_op="FP-Growth" from_port="example set" to_op="Write Excel" to_port="input"/> <connect from_op="FP-Growth" from_port="frequent sets" to_op="Create Association Rules" to_port="item sets"/> <connect from_op="Create Association Rules" from_port="rules" to_port="result 2"/> <connect from_op="Write Excel" from_port="through" 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>
beer,bread,jam,butter,cheese,chips,soda,chocolateTRUE,TRUE,FALSE,TRUE,FALSE,TRUE,FALSE,TRUETRUE,TRUE,TRUE,TRUE,FALSE,FALSE,TRUE,TRUEFALSE,TRUE,TRUE,TRUE,TRUE,FALSE,FALSE,FALSETRUE,TRUE,TRUE,TRUE,FALSE,FALSE,FALSE,FALSEFALSE,FALSE,FALSE,FALSE,TRUE,TRUE,TRUE,FALSEFALSE,TRUE,TRUE,FALSE,FALSE,TRUE,TRUE,TRUETRUE,TRUE,FALSE,FALSE,FALSE,TRUE,FALSE,FALSETRUE,FALSE,FALSE,TRUE,TRUE,FALSE,FALSE,TRUEFALSE,TRUE,TRUE,FALSE,TRUE,TRUE,FALSE,FALSETRUE,TRUE,FALSE,FALSE,FALSE,TRUE,TRUE,TRUETRUE,TRUE,TRUE,FALSE,FALSE,FALSE,TRUE,TRUE
beer=FALSE 4jam=FALSE 5butter=TRUE 5cheese=TRUE 4chips=FALSE 5soda=TRUE 5chocolate=FALSE 5
<?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"> <parameter key="logverbosity" value="all"/> <parameter key="logfile" value="C\part1_log.log"/> <parameter key="resultfile" value="C:\part1_res.res"/> <process expanded="true" height="601" width="784"> <operator activated="true" class="read_csv" expanded="true" height="60" name="Read CSV" width="90" x="68" y="121"> <parameter key="file_name" value="C:\part1_data.csv"/> </operator> <operator activated="true" class="nominal_to_binominal" expanded="true" height="94" name="Nominal to Binominal" width="90" x="246" y="120"/> <operator activated="true" class="weka:W-Apriori" expanded="true" height="60" name="W-Apriori" width="90" x="447" y="165"> <parameter key="C" value="0.6"/> <parameter key="M" value="0.4"/> <parameter key="I" value="true"/> <parameter key="R" value="true"/> <parameter key="V" value="true"/> <parameter key="c" value="1.0"/> </operator> <connect from_op="Read CSV" from_port="output" to_op="Nominal to Binominal" to_port="example set input"/> <connect from_op="Nominal to Binominal" from_port="example set output" to_op="W-Apriori" to_port="example set"/> <connect from_op="W-Apriori" from_port="associator" 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>