blr-core 0.1.1

Bayesian Linear Regression with Automatic Relevance Determination for interpretable, sparse modeling in embedded and WASM environments
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

/// Errors that can arise during BLR+ARD operations.
#[derive(Debug, Error)]
pub enum BLRError {
    /// A matrix required to be positive-definite is singular.
    #[error("matrix is singular or not positive-definite")]
    SingularMatrix,

    /// Dimension mismatch in an input or intermediate calculation.
    #[error("dimension mismatch: expected {expected}, got {got}")]
    DimMismatch { expected: usize, got: usize },
}