24 num_components_ = num_components;
25 num_groups_ = num_groups;
28 double GetPriorVarianceShape() {
return a_;}
29 double GetPriorVarianceScale() {
return b_;}
30 int32_t GetNumComponents() {
return num_components_;}
31 int32_t GetNumGroups() {
return num_groups_;}
32 void SetPriorVarianceShape(
double a) {a_ = a;}
33 void SetPriorVarianceScale(
double b) {b_ = b;}
34 void SetNumComponents(int32_t num_components) {num_components_ = num_components;}
35 void SetNumGroups(int32_t num_groups) {num_groups_ = num_groups;}
39 int32_t num_components_;
45 TreePrior(
double alpha,
double beta, int32_t min_samples_in_leaf, int32_t max_depth = -1) {
48 min_samples_in_leaf_ = min_samples_in_leaf;
49 max_depth_ = max_depth;
52 double GetAlpha() {
return alpha_;}
53 double GetBeta() {
return beta_;}
54 int32_t GetMinSamplesLeaf() {
return min_samples_in_leaf_;}
55 int32_t GetMaxDepth() {
return max_depth_;}
56 void SetAlpha(
double alpha) {alpha_ = alpha;}
57 void SetBeta(
double beta) {beta_ = beta;}
58 void SetMinSamplesLeaf(int32_t min_samples_in_leaf) {min_samples_in_leaf_ = min_samples_in_leaf;}
59 void SetMaxDepth(int32_t max_depth) {max_depth_ = max_depth;}
63 int32_t min_samples_in_leaf_;