Main function implementing adaptive Monte Carlo sampling to explore parameter space.
Updates sampling distribution based on evaluated likelihoods. This is an internal
function called by run_adaptive_sampling
.
adaptive_MC_sampling(
samples_file,
distance_matrix,
iterations = 1,
batch_size = 1,
mapping_max_iter,
relative_epsilon,
folds = 20,
num_cores = 1,
scenario_name,
verbose = FALSE
)
A data.frame
containing all samples (initial and newly generated)
with their parameters and evaluated performance metrics. The data frame includes
columns for the log-transformed parameters, Holdout_MAE
, and NLL
.
Returns NULL
if the results file was not created.
Path to CSV with initial samples for this job.
Distance matrix to fit
Number of sampling iterations per job
Samples per iteration (fixed to 1)
Maximum map optimization iterations
Convergence threshold
Number of CV folds
Number of cores for parallel processing
Name for output files
Logical. Whether to print progress messages. Default: FALSE