Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
updated test suite
  • Loading branch information
jkbradley committed Nov 12, 2015
commit 29d08a8c2c07ceae88dab1f3abef575ef5b5322c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class LDASuite extends SparkFunSuite with MLlibTestSparkContext {

MLTestingUtils.checkCopy(model)

assert(!model.isInstanceOf[DistributedLDAModel])
assert(model.isInstanceOf[LocalLDAModel])
assert(model.vocabSize === vocabSize)
assert(model.estimatedDocConcentration.size === k)
assert(model.topicsMatrix.numRows === vocabSize)
Expand Down Expand Up @@ -210,7 +210,7 @@ class LDASuite extends SparkFunSuite with MLlibTestSparkContext {
assert(model.isDistributed)

val localModel = model.toLocal
assert(!localModel.isInstanceOf[DistributedLDAModel])
assert(localModel.isInstanceOf[LocalLDAModel])

// training logLikelihood, logPrior
val ll = model.trainingLogLikelihood
Expand Down