Core implementation of the adaptive Monte Carlo sampling algorithm. This internal
function explores the parameter space by updating the sampling distribution
based on evaluated likelihoods. It is called by the main run_adaptive_sampling
function.
adaptive_MC_sampling(
samples_file,
dissimilarity_matrix,
iterations = 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 the CSV file with samples for the current job.
The dissimilarity matrix to be fitted.
Number of sampling iterations per job.
Maximum optimization iterations for the embedding.
Convergence threshold for the optimization.
Number of cross-validation folds.
Number of cores for parallel processing.
Name for output files, used for context.
Logical. If TRUE, prints progress messages.