make.heldout.obj | R Documentation |
K
using heldout method.This code requires the CRAN package stm https://cran.r-project.org/package=stm.
make.heldout.obj(train.mc.data, test.mc.data)
train.mc.data |
Transposed |
test.mc.data |
Transposed |
tcsm advises to use "heldout" method to obtain the likelihood of number of
mutational signatures, K
.
That is, to split the whole spectra catalogs dataset into 2 parts:
80
for training stm
model,
20
for estimating likelihood for given K.
heldout, which is a named list $missing $index $docs - list where each element is a list containing the mutations for a given sample $documents - list where each element is a list containing the mutations for a given sample $vocab - list the vocabularies, which refers to mutation types.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.