Enum sbr::models::Loss [−][src]
pub enum Loss { BPR, Hinge, WARP, }
The loss used for training the model.
Variants
BPR
Bayesian Personalised Ranking.
Hinge
Pairwise hinge loss.
WARP
WARP
Trait Implementations
impl Clone for Loss
[src]
impl Clone for Loss
fn clone(&self) -> Loss
[src]
fn clone(&self) -> Loss
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Loss
[src]
impl Debug for Loss
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Loss
[src]
impl PartialEq for Loss
fn eq(&self, other: &Loss) -> bool
[src]
fn eq(&self, other: &Loss) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for Loss
[src]
impl Eq for Loss