I hereby claim:
- I am bjedwards on github.
- I am benjamesedwards (https://keybase.io/benjamesedwards) on keybase.
- I have a public key ASBjYVTk-qBL_tJr6CYa77-YW1RApfzzeq6dpUsQNwANcgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import org.apache.spark.ml.clustering.LDA | |
import org.apache.spark.ml.clustering.LDAModel | |
import java.io._ | |
val dataset = spark.read.format("libsvm").load("data/mllib/sample_lda_libsvm_data.txt") | |
val lda = new LDA().setK(10).setMaxIter(10).setOptimizer("online") | |
val model = lda.fit(dataset) | |
// works | |
model.transform(dataset).show() |