Description Usage Arguments Details Value Examples
Create an model object to be used in the dmm.cluster
function, using user given Julia functions. Must call dmm.addfile
to import files, in which the Julia functions are stored, before using dmm.cluster
on a JModel.
Functions dmm.JConjugateModel
and dmm.JNonConjugateModel
are alternatives.
1 2 3 4 5 | dmm.addfile(filename)
model <- dmm.model(pdf_name, sample_name, marg_name, params, isconjugate=TRUE)
model <- dmm.Jmodel(pdf_name, sample_name, marg_name, params, isconjugate=TRUE)
model <- dmm.JConjugateModel(pdf_name, sample_name, marg_name, params)
model <- dmm.JNonConjugateModel(pdf_name, sample_name, params)
|
pdf_name |
A string. The name of the Julia function in |
sample_name |
A string. The name of the Julia function in |
marg_name |
A string. For conjugate case only. The name of the Julia function in |
params |
A list of all hyperparameters needed for the above three functions. |
isconjugate |
A logical. |
marg_name
is only requried for conjugate models.
A model object of type JModel which can be passed to dmm.cluster
.
1 2 3 4 5 6 | dmm.addfile(filename)
# The following all make models using Julia functions
model <- dmm.model(pdf_name, sample_name, marg_name, params, isconjugate=TRUE)
model <- dmm.Jmodel(pdf_name, sample_name, marg_name, params, isconjugate=TRUE)
model <- dmm.JConjugateModel(pdf_name, sample_name, marg_name, params)
model <- dmm.JNonConjugateModel(pdf_name, sample_name, params)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.