Skip to contents

Quick Access

High-level wrapper for the full pipeline in one call.

classbound()
Visualize a classification decision boundary
explorapp()
Shiny app to visually explore and compare classification boundaries for built-in, custom, and tidymodels algorithms in 2D

Programmatic API

Modular functions for fitting, computing, and plotting boundaries.

fit_model()
Fit a machine learning model
boundary_compute()
Compute the classification decision boundary
predict_model()
Predict using a fitted classbound model
predict(<classbound>) predict(<classbound_multi>)
Predict using a classbound model
plot_boundary()
Visualize the classification decision boundary
plot(<classbound>)
Plot a classbound model boundary
plot(<classbound_boundary>)
Plot a computed boundary

Multi-Model Comparison

Functions for comparing multiple classifiers simultaneously.

boundary_workflow_set()
Compute classification boundaries for a workflow_set
boundary_explore_nd()
Explore high-dimensional classification boundaries

Bring Your Own Model

Wrap pre-fitted models and extend the prediction system.

as_classbound()
Convert a fitted model into a classbound object
predict_adapter()
Internal generic for predicting classifier adapters

Simulation

Generate synthetic classification datasets.

simulate_mixsim()
Simulate data using Gaussian mixture models
simu_n()
Simulate multivariate normal data for multiple classes

Visualization Utilities

Color palettes and other visual helpers.

classbound_palette()
Generate deterministic colors for classification classes

Export

Functions for exporting results from the Shiny app.

export_data_csv()
Export data to CSV
export_models_rds()
Export fitted models to RDS
export_metrics_csv()
Export comparison metrics to CSV
export_plots_pdf()
Export ggplot objects to a multi-page PDF
export_plots_png()
Export ggplot objects to individual PNG files in a directory
export_grid_csv()
Export grid predictions to CSV
export_config_json()
Export current app configuration to JSON
export_reproduce_script()
Export a reproducibility R script

Data Preprocessing

Internal preprocessing (exported for custom workflows).

preprocess_data()
Preprocess data before model fitting

S3 Methods

Print and summary methods for classbound objects.

Datasets

Included datasets.

data69_1
Waveform Dataset (UCI)

Package

Package-level documentation.

classbound-package
classbound: Visualization for Classification Decision Boundaries