-
- Downloads
[SPARK-16447][ML][SPARKR] LDA wrapper in SparkR
## What changes were proposed in this pull request? Add LDA Wrapper in SparkR with the following interfaces: - spark.lda(data, ...) - spark.posterior(object, newData, ...) - spark.perplexity(object, ...) - summary(object) - write.ml(object) - read.ml(path) ## How was this patch tested? Test with SparkR unit test. Author: Xusen Yin <yinxusen@gmail.com> Closes #14229 from yinxusen/SPARK-16447.
Showing
- R/pkg/NAMESPACE 3 additions, 0 deletionsR/pkg/NAMESPACE
- R/pkg/R/generics.R 14 additions, 0 deletionsR/pkg/R/generics.R
- R/pkg/R/mllib.R 164 additions, 2 deletionsR/pkg/R/mllib.R
- R/pkg/inst/tests/testthat/test_mllib.R 87 additions, 0 deletionsR/pkg/inst/tests/testthat/test_mllib.R
- mllib/src/main/scala/org/apache/spark/ml/clustering/LDA.scala 4 additions, 0 deletions...b/src/main/scala/org/apache/spark/ml/clustering/LDA.scala
- mllib/src/main/scala/org/apache/spark/ml/r/LDAWrapper.scala 216 additions, 0 deletionsmllib/src/main/scala/org/apache/spark/ml/r/LDAWrapper.scala
- mllib/src/main/scala/org/apache/spark/ml/r/RWrappers.scala 2 additions, 0 deletionsmllib/src/main/scala/org/apache/spark/ml/r/RWrappers.scala
Loading
Please register or sign in to comment