Runs a full comparison of the BM baseline and pigauto (with attention + calibration) over multiple random seeds. Returns a tidy data.frame suitable for plotting or downstream analysis.
Arguments
- data
pigauto_data object.
- tree
phylo object.
- splits
pre-computed splits (applied to all reps) or
NULLto create fresh splits per seed.- seeds
integer vector of random seeds for replication.
- epochs
number of training epochs.
- verbose
logical.
- ...
additional arguments passed to
fit_pigauto.
Details
For each seed the function:
Creates train/val/test splits.
Fits the phylogenetic BM baseline.
Fits pigauto (with attention and calibration enabled by default).
Evaluates both methods on the test split.
Collects results into a single data.frame.
Examples
if (FALSE) { # \dontrun{
cmp <- compare_methods(pd, tree300, seeds = 1:3, epochs = 500)
# Summarise across reps
aggregate(value ~ method + trait + metric, data = cmp, FUN = mean)
} # }
