19class RandomEffectsRegressionGaussianPrior :
public RandomEffectsGaussianPrior {
21 RandomEffectsRegressionGaussianPrior(
double a,
double b, int32_t num_components, int32_t num_groups) {
24 num_components_ = num_components;
25 num_groups_ = num_groups;
27 ~RandomEffectsRegressionGaussianPrior() {}
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; }
40 int32_t num_components_;
46 TreePrior(
double alpha,
double beta, int32_t min_samples_in_leaf, int32_t max_depth = -1) {
49 min_samples_in_leaf_ = min_samples_in_leaf;
50 max_depth_ = max_depth;
53 double GetAlpha() {
return alpha_; }
54 double GetBeta() {
return beta_; }
55 int32_t GetMinSamplesLeaf() {
return min_samples_in_leaf_; }
56 int32_t GetMaxDepth() {
return max_depth_; }
57 void SetAlpha(
double alpha) { alpha_ = alpha; }
58 void SetBeta(
double beta) { beta_ = beta; }
59 void SetMinSamplesLeaf(int32_t min_samples_in_leaf) { min_samples_in_leaf_ = min_samples_in_leaf; }
60 void SetMaxDepth(int32_t max_depth) { max_depth_ = max_depth; }
65 int32_t min_samples_in_leaf_;