sklears_ensemble/adaboost/
config.rs1use super::types::*;
4use sklears_core::types::Float;
5
6impl Default for AdaBoostConfig {
7 fn default() -> Self {
8 Self {
9 n_estimators: 50,
10 learning_rate: 1.0,
11 algorithm: AdaBoostAlgorithm::SAMME,
12 random_state: None,
13 }
14 }
15}
16
17impl Default for LogitBoostConfig {
18 fn default() -> Self {
19 Self {
20 n_estimators: 50,
21 learning_rate: 1.0,
22 random_state: None,
23 max_depth: Some(3),
24 min_samples_split: 2,
25 min_samples_leaf: 1,
26 tolerance: 1e-4,
27 max_iter: 100,
28 }
29 }
30}