pub struct TensorForestParams {Show 24 fields
pub leaf_type: i32,
pub stats_type: i32,
pub collection_type: i32,
pub pruning_type: Option<SplitPruningConfig>,
pub finish_type: Option<SplitFinishConfig>,
pub num_trees: i32,
pub max_nodes: i32,
pub num_features: i32,
pub inequality_test_type: i32,
pub is_regression: bool,
pub drop_final_class: bool,
pub collate_examples: bool,
pub checkpoint_stats: bool,
pub use_running_stats_method: bool,
pub initialize_average_splits: bool,
pub inference_tree_paths: bool,
pub num_outputs: i32,
pub num_splits_to_consider: Option<DepthDependentParam>,
pub split_after_samples: Option<DepthDependentParam>,
pub dominate_fraction: Option<DepthDependentParam>,
pub min_split_samples: Option<DepthDependentParam>,
pub graph_dir: String,
pub num_select_features: i32,
pub num_classes_to_track: i32,
}
Fields§
§leaf_type: i32
———— Types that control training subsystems —— //
stats_type: i32
§collection_type: i32
§pruning_type: Option<SplitPruningConfig>
§finish_type: Option<SplitFinishConfig>
§num_trees: i32
——— Parameters that can’t change by definition ————— //
max_nodes: i32
§num_features: i32
§inequality_test_type: i32
§is_regression: bool
Some booleans controlling execution
drop_final_class: bool
§collate_examples: bool
§checkpoint_stats: bool
§use_running_stats_method: bool
§initialize_average_splits: bool
§inference_tree_paths: bool
§num_outputs: i32
Number of classes (classification) or targets (regression)
num_splits_to_consider: Option<DepthDependentParam>
——— Parameters that could be depth-dependent ————— //
split_after_samples: Option<DepthDependentParam>
§dominate_fraction: Option<DepthDependentParam>
§min_split_samples: Option<DepthDependentParam>
§graph_dir: String
——— Parameters for experimental features ––––––––––– //
num_select_features: i32
§num_classes_to_track: i32
When using a FixedSizeSparseClassificationGrowStats, keep track of this many classes.
Implementations§
Source§impl TensorForestParams
impl TensorForestParams
Sourcepub fn leaf_type(&self) -> LeafModelType
pub fn leaf_type(&self) -> LeafModelType
Returns the enum value of leaf_type
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_leaf_type(&mut self, value: LeafModelType)
pub fn set_leaf_type(&mut self, value: LeafModelType)
Sets leaf_type
to the provided enum value.
Sourcepub fn stats_type(&self) -> StatsModelType
pub fn stats_type(&self) -> StatsModelType
Returns the enum value of stats_type
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_stats_type(&mut self, value: StatsModelType)
pub fn set_stats_type(&mut self, value: StatsModelType)
Sets stats_type
to the provided enum value.
Sourcepub fn collection_type(&self) -> SplitCollectionType
pub fn collection_type(&self) -> SplitCollectionType
Returns the enum value of collection_type
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_collection_type(&mut self, value: SplitCollectionType)
pub fn set_collection_type(&mut self, value: SplitCollectionType)
Sets collection_type
to the provided enum value.
Sourcepub fn inequality_test_type(&self) -> Type
pub fn inequality_test_type(&self) -> Type
Returns the enum value of inequality_test_type
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_inequality_test_type(&mut self, value: Type)
pub fn set_inequality_test_type(&mut self, value: Type)
Sets inequality_test_type
to the provided enum value.
Trait Implementations§
Source§impl Clone for TensorForestParams
impl Clone for TensorForestParams
Source§fn clone(&self) -> TensorForestParams
fn clone(&self) -> TensorForestParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TensorForestParams
impl Debug for TensorForestParams
Source§impl Default for TensorForestParams
impl Default for TensorForestParams
Source§impl Message for TensorForestParams
impl Message for TensorForestParams
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.