pub struct TreeEnsembleParameters {
pub nodes: Vec<TreeNode>,
pub num_prediction_dimensions: u64,
pub base_prediction_value: Vec<f64>,
}Expand description
Tree ensemble parameters.
Fields§
§nodes: Vec<TreeNode>§num_prediction_dimensions: u64The number of prediction dimensions or classes in the model.
All instances of evaluationIndex in a leaf node
must be less than this value,
and the number of values in the basePredictionValue field
must be equal to this value.
For regression, this is the dimension of the prediction. For classification, this is the number of classes.
base_prediction_value: Vec<f64>The base prediction value.
The number of values in this must match the default values of the tree model.
Trait Implementations§
Source§impl Clone for TreeEnsembleParameters
impl Clone for TreeEnsembleParameters
Source§fn clone(&self) -> TreeEnsembleParameters
fn clone(&self) -> TreeEnsembleParameters
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TreeEnsembleParameters
impl Debug for TreeEnsembleParameters
Source§impl Default for TreeEnsembleParameters
impl Default for TreeEnsembleParameters
Source§impl Message for TreeEnsembleParameters
impl Message for TreeEnsembleParameters
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for TreeEnsembleParameters
impl PartialEq for TreeEnsembleParameters
Source§fn eq(&self, other: &TreeEnsembleParameters) -> bool
fn eq(&self, other: &TreeEnsembleParameters) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TreeEnsembleParameters
Auto Trait Implementations§
impl Freeze for TreeEnsembleParameters
impl RefUnwindSafe for TreeEnsembleParameters
impl Send for TreeEnsembleParameters
impl Sync for TreeEnsembleParameters
impl Unpin for TreeEnsembleParameters
impl UnsafeUnpin for TreeEnsembleParameters
impl UnwindSafe for TreeEnsembleParameters
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