#[repr(i32)]pub enum LeafModelType {
ModelDenseClassification = 0,
ModelSparseClassification = 1,
ModelRegression = 2,
ModelSparseOrDenseClassification = 3,
}Expand description
Leaf models specify what is returned at inference time, and how it is stored in the decision_trees.Leaf protos.
Variants§
ModelDenseClassification = 0
ModelSparseClassification = 1
ModelRegression = 2
ModelSparseOrDenseClassification = 3
Implementations§
Trait Implementations§
Source§impl Clone for LeafModelType
impl Clone for LeafModelType
Source§fn clone(&self) -> LeafModelType
fn clone(&self) -> LeafModelType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LeafModelType
impl Debug for LeafModelType
Source§impl Default for LeafModelType
impl Default for LeafModelType
Source§fn default() -> LeafModelType
fn default() -> LeafModelType
Returns the “default value” for a type. Read more
Source§impl From<LeafModelType> for i32
impl From<LeafModelType> for i32
Source§fn from(value: LeafModelType) -> i32
fn from(value: LeafModelType) -> i32
Converts to this type from the input type.
Source§impl Hash for LeafModelType
impl Hash for LeafModelType
Source§impl Ord for LeafModelType
impl Ord for LeafModelType
Source§fn cmp(&self, other: &LeafModelType) -> Ordering
fn cmp(&self, other: &LeafModelType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LeafModelType
impl PartialEq for LeafModelType
Source§impl PartialOrd for LeafModelType
impl PartialOrd for LeafModelType
impl Copy for LeafModelType
impl Eq for LeafModelType
impl StructuralPartialEq for LeafModelType
Auto Trait Implementations§
impl Freeze for LeafModelType
impl RefUnwindSafe for LeafModelType
impl Send for LeafModelType
impl Sync for LeafModelType
impl Unpin for LeafModelType
impl UnwindSafe for LeafModelType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more