Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the calculated_point_estimates config parameter in BPZliteEstimator #36

Open
drewoldag opened this issue Aug 14, 2023 · 0 comments
Open

Comments

@drewoldag
Copy link

A new config parameter, calculated_point_estimates was introduced in rail_base PR #29. This parameter defines which point estimates to compute automatically during the estimation stage.

The implementation will likely look similar to what was done for RAIL_flexzboost in PR #34

The following is a rough gist:

ancil_dictionary = dict()

calculated_point_estimates = []
if 'calculated_point_estimates' in self.config:
    calculated_point_estimates = self.config.calculated_point_estimates

if 'mode' in calculated_point_estimates:
    ancil_dictionary.update(mode = <mode calculation>)

if 'mean' in calculated_point_estimates:
    ancil_dictionary.update(mean = <mean calculation>)

if 'median' in calculated_point_estimates:
    ancil_dictionary.update(median = <median calculation>)

if calculated_point_estimates:
    qp_dstn.set_ancil(ancil_dictionary)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant