| Findbp | R Documentation |
Repeating cross-validation over a grid of hyperparameters for simulated annealing-based fitting, evaluates prediction/fitting errors on held-out samples, and returns candidate best parameter/timepoint combinations.
Findbp(
ocmat,
enmat = NULL,
cvmode = c("10fold", "5fold", "loo"),
nrepeat = 5,
we = c(0.001),
maxlrs = c(0.005),
totalit = 4000,
lmd = c(5e-04, 0.001, 0.0025, 0.005, 0.0075),
rep = 8,
intv = 100,
threads = 1,
tol = 0.03,
runadamW = TRUE,
sparse = TRUE,
fastfitting = TRUE,
reporting = TRUE
)
ocmat |
Numeric matrix (0/1). occurrence matrix of the communities. |
enmat |
Optional environmental parameter matrix. |
cvmode |
Cross-validation mode. One of '"10fold"', '"5fold"', or '"loo"'. '"loo"' performs leave-one-out cross-validation. Default is '"10fold"'. |
nrepeat |
Number of repeated cross-validation runs for k-fold CV. Ignored when 'cvmode = "loo"'. Default is '10'. |
we |
Numeric vector. Candidate weight decay values. |
maxlrs |
Numeric vector. Maximum learning rate. |
totalit |
Integer. Total iterations for SA. |
lmd |
Numeric vector. Candidate |
rep |
Integer. Number of replicates for runSA. |
intv |
Integer. Recording interval. |
threads |
Integer. Number of cores. |
tol |
Numeric. Error tolerance for finding the best hyperparameters (default: 0.03) |
runadamW |
Logical. Use AdamW. |
sparse |
Logical. Use sparsity penalty. |
fastfitting |
Logical. If |
reporting |
Logical. Print progress. |
A list with:
A named list of best hyperparameter settings and scores.
All validation results for each grid point.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.