tinguely 0.1.0

Machine learning library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

   
pub trait UnsupervisedLearn<T, U>
{
    fn train<'a>(self: &mut Self, input: &'a T);

    fn predict<'a>(self: &Self, input: &'a T) -> U;
}

pub trait SupervisedLearn<T, U>
{
        /// Predict output from inputs.
        fn predict<'a, 'b>(self: &'a Self, input: &'b T) -> U; // Result<U, &str>;

        /// Train the model using inputs and targets.
        fn train<'a, 'b>(self: &'a mut Self, input: &'b T, target: &'b U); //Result<(), ()>;
}