Skip to content

Commit

Permalink
Merge pull request #961 from cta-observatory/rfstddepth
Browse files Browse the repository at this point in the history
Reduce size of random forests in standard config
  • Loading branch information
vuillaut authored Apr 12, 2022
2 parents fb04c85 + 1289242 commit 33a6355
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
16 changes: 8 additions & 8 deletions lstchain/data/lstchain_standard_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
},

"random_forest_energy_regressor_args": {
"max_depth": 50,
"max_depth": 30,
"min_samples_leaf": 2,
"n_jobs": 4,
"n_estimators": 150,
Expand All @@ -75,7 +75,7 @@
"max_features": "auto",
"max_leaf_nodes": null,
"min_impurity_decrease": 0.0,
"min_samples_split": 2,
"min_samples_split": 10,
"min_weight_fraction_leaf": 0.0,
"oob_score": false,
"random_state": 42,
Expand All @@ -84,7 +84,7 @@
},

"random_forest_disp_regressor_args": {
"max_depth": 50,
"max_depth": 30,
"min_samples_leaf": 2,
"n_jobs": 4,
"n_estimators": 150,
Expand All @@ -93,7 +93,7 @@
"max_features": "auto",
"max_leaf_nodes": null,
"min_impurity_decrease": 0.0,
"min_samples_split": 2,
"min_samples_split": 10,
"min_weight_fraction_leaf": 0.0,
"oob_score": false,
"random_state": 42,
Expand All @@ -102,12 +102,12 @@
},

"random_forest_disp_classifier_args": {
"max_depth": 100,
"max_depth": 30,
"min_samples_leaf": 2,
"n_jobs": 4,
"n_estimators": 100,
"criterion": "gini",
"min_samples_split": 2,
"min_samples_split": 10,
"min_weight_fraction_leaf": 0.0,
"max_features": "auto",
"max_leaf_nodes": null,
Expand All @@ -121,12 +121,12 @@
},

"random_forest_particle_classifier_args": {
"max_depth": 100,
"max_depth": 30,
"min_samples_leaf": 2,
"n_jobs": 4,
"n_estimators": 100,
"criterion": "gini",
"min_samples_split": 2,
"min_samples_split": 10,
"min_weight_fraction_leaf": 0.0,
"max_features": "auto",
"max_leaf_nodes": null,
Expand Down
4 changes: 3 additions & 1 deletion lstchain/tools/tests/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ def test_create_irf_point_like_energy_dependent_cuts(
"--overwrite",
"--energy-dependent-gh",
"--point-like",
"--energy-dependent-theta"
"--energy-dependent-theta",
"--DL3Cuts.max_theta_cut=1",
"--DL3Cuts.fill_theta_cut=1"
],
cwd=temp_dir_observed_files,
)
Expand Down

0 comments on commit 33a6355

Please sign in to comment.