< Examples | BID Data Project

place holder ...

Examples

Run LDA

var lda = Learner(new MatDataSource(docMats), new LDAModel(new LDAModel.Options),
null, new IncNormUpdater(new IncNormUpdater.Options), new Learner.Options)


Implement LDA (e-step)

def eStep(sdata:Mat, user:Mat):Unit = {
  for (i <- 0 until opts.uiter) {
   val preds = SDDMM(modelmat, user, sdata)
   val unew = user • (mm * (sdata / preds)) + opts.alpha
   user <-- exppsi(unew)
 }
}