We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b4e3b3 commit 706303fCopy full SHA for 706303f
mllib/src/main/scala/org/apache/spark/mllib/fpm/AssociationRules.scala
@@ -133,7 +133,7 @@ object AssociationRules {
133
*
134
*/
135
@Since("1.5.0")
136
- def confidence: Double = freqUnion.toDouble / freqAntecedent
+ def confidence: Double = freqUnion / freqAntecedent
137
138
@Since("2.4.0")
139
def lift: Option[Double] = freqConsequent.map(fCons => confidence / fCons)
0 commit comments