surrealml-core 0.1.3

The core machine learning library for SurrealML that enables SurrealDB to store and load ML models
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! traits for the normalisers module.

pub trait Normaliser {

    /// Normalises a value.
    fn normalise(&self, input: f32)-> f32;

    fn inverse_normalise(&self, input: f32)-> f32 {
        input
    }

    /// Returns the key of the normaliser.
    fn key() -> String;
}