Skip to content

Commit 706303f

Browse files
committed
address comments
1 parent 1b4e3b3 commit 706303f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mllib/src/main/scala/org/apache/spark/mllib/fpm/AssociationRules.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ object AssociationRules {
133133
*
134134
*/
135135
@Since("1.5.0")
136-
def confidence: Double = freqUnion.toDouble / freqAntecedent
136+
def confidence: Double = freqUnion / freqAntecedent
137137

138138
@Since("2.4.0")
139139
def lift: Option[Double] = freqConsequent.map(fCons => confidence / fCons)

0 commit comments

Comments
 (0)