R/celdaGridSearch.R
selectBestModel.RdSelect the chain with the best log likelihood for each
combination of tested parameters from a SCE object gererated by
celdaGridSearch or from a celdaList object.
selectBestModel(x, asList = FALSE, altExpName = "featureSubset") # S4 method for SingleCellExperiment selectBestModel(x, asList = FALSE, altExpName = "featureSubset") # S4 method for celdaList selectBestModel(x, asList = FALSE)
| x | Can be one of
|
|---|---|
| asList |
|
| altExpName | The name for the altExp slot to use. Default "featureSubset". |
One of
A new SingleCellExperiment object containing
one model with the best log-likelihood for each set of parameters in
metadata(x). If there is only one set of parameters,
a new SingleCellExperiment object
with the matching model stored in the
metadata
"celda_parameters" slot will be returned. Otherwise, a new
SingleCellExperiment object with the subset models stored
in the metadata
"celda_grid_search" slot will be returned.
A new celdaList object containing one model with the best
log-likelihood for each set of parameters. If only one set of parameters
is in the celdaList, the best model will be returned directly
instead of a celdaList object.