Repository: spark
Updated Branches:
  refs/heads/master 2f91f5ac0 -> ac5c63528


[SPARK-13506][MLLIB] Fix the wrong parameter in R code comment in 
AssociationRulesSuite

JIRA: https://issues.apache.org/jira/browse/SPARK-13506

## What changes were proposed in this pull request?

just chang R Snippet Comment in  AssociationRulesSuite

## How was this patch tested?

unit test passsed

Author: Zheng RuiFeng <ruife...@foxmail.com>

Closes #11387 from zhengruifeng/ars.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/ac5c6352
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/ac5c6352
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/ac5c6352

Branch: refs/heads/master
Commit: ac5c635281aa796547e31e20c10d2483469294ee
Parents: 2f91f5a
Author: Zheng RuiFeng <ruife...@foxmail.com>
Authored: Mon Feb 29 14:51:27 2016 +0000
Committer: Sean Owen <so...@cloudera.com>
Committed: Mon Feb 29 14:51:27 2016 +0000

----------------------------------------------------------------------
 .../scala/org/apache/spark/mllib/fpm/AssociationRulesSuite.scala  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/ac5c6352/mllib/src/test/scala/org/apache/spark/mllib/fpm/AssociationRulesSuite.scala
----------------------------------------------------------------------
diff --git 
a/mllib/src/test/scala/org/apache/spark/mllib/fpm/AssociationRulesSuite.scala 
b/mllib/src/test/scala/org/apache/spark/mllib/fpm/AssociationRulesSuite.scala
index 77a2773..dcb1f39 100644
--- 
a/mllib/src/test/scala/org/apache/spark/mllib/fpm/AssociationRulesSuite.scala
+++ 
b/mllib/src/test/scala/org/apache/spark/mllib/fpm/AssociationRulesSuite.scala
@@ -42,6 +42,7 @@ class AssociationRulesSuite extends SparkFunSuite with 
MLlibTestSparkContext {
       .collect()
 
     /* Verify results using the `R` code:
+       library(arules)
        transactions = as(sapply(
          list("r z h k p",
               "z y x w v u t s",
@@ -52,7 +53,7 @@ class AssociationRulesSuite extends SparkFunSuite with 
MLlibTestSparkContext {
          FUN=function(x) strsplit(x," ",fixed=TRUE)),
          "transactions")
        ars = apriori(transactions,
-                     parameter = list(support = 0.0, confidence = 0.5, 
target="rules", minlen=2))
+                     parameter = list(support = 0.5, confidence = 0.9, 
target="rules", minlen=2))
        arsDF = as(ars, "data.frame")
        arsDF$support = arsDF$support * length(transactions)
        names(arsDF)[names(arsDF) == "support"] = "freq"


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to