Description Usage Arguments Details Value Author(s) Examples
Gradients are computed using finite differences.
1 | BFGS_special(init, knobj, fun_like, verbose = FALSE)
|
init |
An initial value of the parameter to be optimized. |
knobj |
A knowledge list. See |
fun_like |
A function to compute posterior value. See |
verbose |
Print progresses of the local search? |
The step size are chosen using Armijo's rule. Special checks are performed to avoid numerical instabilities in the differential equation solver.
A list with the following entries:
theta |
The local optimum found by the method. |
fail |
A boolean representing wither the local search failed or not due to numerical problems. |
Edouard Pauwels
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | data(experiment_list1)
data(observables)
## Generate the knowledge object with correct parameter value
knobj <- generate_our_knowledge(transform_params)
## Initialize with some data
knobj$datas[[1]] <- list(
manip = experiment_list1$nothing,
data = add_noise(
simulate_experiment(knobj$global_parameters$true_params_T, knobj, experiment_list1$nothing)[
knobj$global_parameters$tspan %in% observables[["mrnaLow"]]$reso,
observables[["mrnaLow"]]$obs
]
)
)
knobj$experiments <- paste("nothing", "mrnaLow")
theta <- rep( 50, length(knobj$global_parameters$param_names) )
names(theta) <- knobj$global_parameters$param_names
## Only perform 5 iterations
knobj$global_parameters$max_it <- 5
temp <- BFGS_special(theta, knobj, eval_log_like_knobj)
temp$theta
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.