rust-ml 0.1.5

A collection of machine learning algorithms implemented in pure Rust (personal project for practice).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::core::error::ModelError;
use thiserror::Error;

#[derive(Debug, Error)]
pub enum ProfilerError {
    #[error("Optimization error: {0}")]
    OptimizationError(String),

    #[error("Evaluation error: {0}")]
    EvaluationError(String),
}

impl From<ModelError> for ProfilerError {
    fn from(err: ModelError) -> Self {
        ProfilerError::OptimizationError(err.to_string())
    }
}