Skip to contents

Produces a self-contained HTML file with interactive charts comparing the GNN against the phylogenetic baseline. The report includes per-trait metrics, gate values, conformal coverage, and training history.

Usage

pigauto_report(
  fit,
  data = NULL,
  splits = NULL,
  output_path = "pigauto_report.html",
  title = "pigauto Imputation Report",
  open = TRUE
)

Arguments

fit

A pigauto_fit object (or a pigauto_result from impute).

data

Optional pigauto_data object. Extracted automatically when fit is a pigauto_result.

splits

Optional splits object. Extracted automatically when fit is a pigauto_result.

output_path

Character. File path for the HTML report (default "pigauto_report.html" in the working directory).

title

Character. Report title.

open

Logical. Open the report in a browser when done (default TRUE).

Value

The output path (invisibly).

Examples

# \donttest{
data(avonet300, tree300)
tree <- ape::keep.tip(tree300, tree300$tip.label[seq_len(30L)])
traits <- avonet300[match(tree$tip.label, avonet300$Species_Key),
                     c("Mass", "Wing.Length"), drop = FALSE]
rownames(traits) <- tree$tip.label
traits$Mass[seq_len(3L)] <- NA_real_
result <- impute(traits, tree, epochs = 5L, verbose = FALSE)
#> Error: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
pigauto_report(result, output_path = tempfile(fileext = ".html"),
               open = FALSE)
#> Error: object 'result' not found
# }