Learn R Programming

quollr (version 0.3.13)

augment.highd_vis_model: Augment Data with Predictions and Error Metrics for NLDR Models

Description

This S3 method augments a dataset with predictions and error metrics obtained from a nonlinear dimension reduction (NLDR) model stored in a highd_vis_model object.

Usage

# S3 method for highd_vis_model
augment(x, highd_data, ...)

Value

A tibble containing the augmented data with predictions, error metrics, and absolute error metrics.

Arguments

x

An object of class highd_vis_model containing the model outputs.

highd_data

A data frame or tibble containing the original high-dimensional coordinates with an ID column.

...

Additional arguments (currently unused).

Examples

Run this code
# Assuming 'fit' is a highd_vis_model object and 'scurve' contains the original data:
fit <- fit_highd_model(highd_data = scurve, nldr_data = scurve_umap, b1 = 30,
q = 0.1, hd_thresh = 5)
augment(x = fit, highd_data = scurve)


Run the code above in your browser using DataLab