Skip to content

Commit 50f3e16

Browse files
new EnsembleDistribution method to get expected parameters
1 parent 0bb35aa commit 50f3e16

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
**2.2.1 - 12/31/25**
2+
3+
- Create new EnsembleDistribution method to get expected parameters
4+
15
**2.2.1 - 11/20/25**
26

37
- Improve 'make build-env': better handle args and make the env name optional

src/risk_distributions/risk_distributions.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,15 @@ def get_parameters(
595595

596596
return weights, params
597597

598+
@classmethod
599+
def get_expected_parameters(cls, distribution_name: str) -> list[str]:
600+
"""Get the expected parameters for a given distribution in the ensemble."""
601+
return [
602+
*cls._distribution_map[distribution_name].expected_parameters,
603+
"x_min",
604+
"x_max",
605+
]
606+
598607
@staticmethod
599608
def fill_missing_weights(weights: Parameters, expected_columns) -> Parameters:
600609
weights = copy.deepcopy(weights)

0 commit comments

Comments
 (0)