File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ Please refer to http://docs.prediction.io/templates/complementarypurchase/quicks
66
77## Versions
88
9+ ### v0.3.3
10+
11+ - change to sort by confidence instead of lift score and change default parameter values
12+
913### v0.3.2
1014
1115- lower the default minSupport and minConfidence parameter setting
Original file line number Diff line number Diff line change 1313 "params" : {
1414 "basketWindow" : 120 ,
1515 "maxRuleLength" : 2 ,
16- "minSupport" : 0.05 ,
17- "minConfidence" : 0.2 ,
16+ "minSupport" : 0.001 ,
17+ "minConfidence" : 0.1 ,
1818 "minLift" : 1.0 ,
1919 "minBasketSize" : 2 ,
2020 "maxNumRulesPerCond" : 5
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ class Algorithm(val ap: AlgorithmParams)
108108 val sortedRules = rules.groupByKey
109109 .mapValues(iter =>
110110 iter.toVector
111- .sortBy(_.lift )(Ordering .Double .reverse)
111+ .sortBy(_.confidence )(Ordering .Double .reverse)
112112 .take(ap.maxNumRulesPerCond)
113113 )
114114 .collectAsMap.toMap
You can’t perform that action at this time.
0 commit comments