Skip to main content

Module error

Module error 

Source
Expand description

Error type for the Kernel PCA research-preview module.

This is intentionally separate from the crate-wide crate::error::KernelError: the Kernel PCA API exposes a narrow set of failure modes (fit-before-transform, bad dimensions, degenerate eigenproblems, …) that are easier to pattern-match on via a dedicated enum.

The error implements std::error::Error via thiserror, so it converts cleanly into anyhow::Error or any other boxed-error type a caller might already be using.

Enums§

KernelPcaError
Failure modes for crate::kernel_pca::KernelPCA and friends.

Type Aliases§

KernelPcaResult
Result alias used throughout the crate::kernel_pca module.