Repository: spark Updated Branches: refs/heads/master f9c2a2af1 -> dac090d1e
[SPARK-9657] Fix return type of getMaxPatternLength mengxr Author: Feynman Liang <[email protected]> Closes #7974 from feynmanliang/SPARK-9657 and squashes the following commits: 7ca533f [Feynman Liang] Fix return type of getMaxPatternLength Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/dac090d1 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/dac090d1 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/dac090d1 Branch: refs/heads/master Commit: dac090d1e9be7dec6c5ebdb2a81105b87e853193 Parents: f9c2a2a Author: Feynman Liang <[email protected]> Authored: Wed Aug 5 15:42:18 2015 -0700 Committer: Xiangrui Meng <[email protected]> Committed: Wed Aug 5 15:42:18 2015 -0700 ---------------------------------------------------------------------- mllib/src/main/scala/org/apache/spark/mllib/fpm/PrefixSpan.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/dac090d1/mllib/src/main/scala/org/apache/spark/mllib/fpm/PrefixSpan.scala ---------------------------------------------------------------------- diff --git a/mllib/src/main/scala/org/apache/spark/mllib/fpm/PrefixSpan.scala b/mllib/src/main/scala/org/apache/spark/mllib/fpm/PrefixSpan.scala index d5f0c92..ad6715b5 100644 --- a/mllib/src/main/scala/org/apache/spark/mllib/fpm/PrefixSpan.scala +++ b/mllib/src/main/scala/org/apache/spark/mllib/fpm/PrefixSpan.scala @@ -82,7 +82,7 @@ class PrefixSpan private ( /** * Gets the maximal pattern length (i.e. the length of the longest sequential pattern to consider. */ - def getMaxPatternLength: Double = maxPatternLength + def getMaxPatternLength: Int = maxPatternLength /** * Sets maximal pattern length (default: `10`). --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
