class
LDAgibbsv extends FactorModel
Instance Constructors
-
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
var
_modelmats: Array[Mat]
-
var
alpha: Mat
-
final
def
asInstanceOf[T0]: T0
-
-
def
clone(): AnyRef
-
def
copyMats(from: Array[Mat], to: Array[Mat]): Unit
-
def
copyTo(mod: Model): Unit
-
-
def
doblock(gmats: Array[Mat], ipass: Int, i: Long): Unit
-
def
doblockg(amats: Array[Mat], ipass: Int, here: Long): Unit
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
evalblock(mats: Array[Mat], ipass: Int, here: Long): FMat
-
def
evalblockg(amats: Array[Mat], ipass: Int, here: Long): FMat
-
def
evalfun(sdata: Mat, user: Mat, ipass: Int): FMat
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
var
gmats: Array[Mat]
-
def
hashCode(): Int
-
def
init(): Unit
-
final
def
isInstanceOf[T0]: Boolean
-
var
mats: Array[Mat]
-
var
mm: Mat
-
def
modelmats: Array[Mat]
-
def
mupdate(sdata: Mat, user: Mat, ipass: Int): Unit
-
def
mupdate2(data: Mat, user: Mat, ipass: Int): Unit
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
var
nsamps: Mat
-
val
opts: Opts
-
var
parent_model: Model
-
var
putBack: Int
-
var
refresh: Boolean
-
def
setmodelmats(a: Array[Mat]): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
var
traceMem: Boolean
-
def
updatePass(ipass: Int): Unit
-
def
updateSamps: Mat
-
var
updatemats: Array[Mat]
-
var
useDouble: Boolean
-
var
useGPU: Boolean
-
def
uupdate(sdata: Mat, user: Mat, ipass: Int): Unit
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
Latent Dirichlet Model using repeated Gibbs sampling.
This version (v) supports per-model-element sample counts, e.g. for local heating or cooling of particular model coefficients.
Extends Factor Model Options with: - dim(256): Model dimension - uiter(5): Number of iterations on one block of data - alpha(0.001f) Dirichlet prior on document-topic weights - beta(0.0001f) Dirichlet prior on word-topic weights - nsamps(row(100)) matrix with the number of repeated samples to take
Other key parameters inherited from the learner, datasource and updater: - blockSize: the number of samples processed in a block - power(0.3f): the exponent of the moving average model' = a dmodel + (1-a)*model, a = 1/nblocks^power - npasses(10): number of complete passes over the dataset
Example:
a is a sparse word x document matrix