libsvm 0.4.0

High level Rust bindings for libsvm
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Error types.

use std::path::PathBuf;

/// The error type used across this crate.
#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error("cannot convert path \"{path}\" to bytes")]
    UnsupportedPath { path: PathBuf },
    #[error("invalid hyperparameter: {reason}")]
    InvalidHyperparameter { reason: String },
    #[error("invalid data: {reason}")]
    InvalidData { reason: String },
    #[error("invalid error: {reason}")]
    InternalError { reason: String },
}