Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbradley committed Apr 29, 2015
1 parent 61d60df commit 9e910d9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class EMLDAOptimizer extends LDAOptimizer {
this
}

private[clustering] override def next(): EMLDAOptimizer = {
override private[clustering] def next(): EMLDAOptimizer = {
require(graph != null, "graph is null, EMLDAOptimizer not initialized.")

val eta = topicConcentration
Expand Down Expand Up @@ -202,7 +202,7 @@ class EMLDAOptimizer extends LDAOptimizer {
graph.vertices.filter(isTermVertex).values.fold(BDV.zeros[Double](numTopics))(_ += _)
}

private[clustering] override def getLDAModel(iterationTimes: Array[Double]): LDAModel = {
override private[clustering] def getLDAModel(iterationTimes: Array[Double]): LDAModel = {
require(graph != null, "graph is null, EMLDAOptimizer not initialized.")
this.graphCheckpointer.deleteAllCheckpoints()
new DistributedLDAModel(this, iterationTimes)
Expand Down Expand Up @@ -295,7 +295,7 @@ class OnlineLDAOptimizer extends LDAOptimizer {
this
}

private[clustering] override def initialize(docs: RDD[(Long, Vector)], lda: LDA): LDAOptimizer = {
override private[clustering] def initialize(docs: RDD[(Long, Vector)], lda: LDA): LDAOptimizer = {
this.k = lda.getK
this.corpusSize = docs.count()
this.vocabSize = docs.first()._2.size
Expand All @@ -318,7 +318,7 @@ class OnlineLDAOptimizer extends LDAOptimizer {
* model, and it will update the topic distribution adaptively for the terms appearing in the
* subset.
*/
private[clustering] override def next(): OnlineLDAOptimizer = {
override private[clustering] def next(): OnlineLDAOptimizer = {
iteration += 1
val batch = docs.sample(withReplacement = true, miniBatchFraction, randomGenerator.nextLong())
if (batch.isEmpty()) return this
Expand Down

0 comments on commit 9e910d9

Please sign in to comment.