Struct rustlearn::factorization::factorization_machines::FactorizationMachine [] [src]

pub struct FactorizationMachine {
    // some fields omitted
}

A two-class factorization machine implemented using stochastic gradient descent.

Methods

impl FactorizationMachine
[src]

fn get_coefficients(&self) -> &Array

fn get_latent_factors(&self) -> &Array

Trait Implementations

impl Decodable for FactorizationMachine
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<FactorizationMachine, __D::Error>

impl Encodable for FactorizationMachine
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Clone for FactorizationMachine
[src]

fn clone(&self) -> FactorizationMachine

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<'a, T> SupervisedModel<&'a T> for FactorizationMachine where &'a T: RowIterable, T: IndexableMatrix
[src]

fn fit(&mut self, X: &'a T, y: &Array) -> Result<(), &'static str>

fn decision_function(&self, X: &'a T) -> Result<Array, &'static str>

fn predict(&self, x: T) -> Result<Array, &'static str>

impl<'a, T> ParallelSupervisedModel<&'a T> for FactorizationMachine where &'a T: RowIterable, T: IndexableMatrix + Sync
[src]

fn fit_parallel(&mut self, X: &'a T, y: &Array, num_threads: usize) -> Result<(), &'static str>