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

Add sanity checks to policy generator #387

Conversation

ahouseholder
Copy link
Contributor

This PR addresses two related problems with the policy generator:

  1. there should be an equal number of outcomes and outcome weights
  2. the outcome weights should sum to 1

Previously it was possible that either of these conditions could be unmet, resulting in bugs where outcomes would not be distributed as intended across the input state space.

@ahouseholder ahouseholder linked an issue Nov 13, 2023 that may be closed by this pull request
@ahouseholder ahouseholder added this to the SSVC 2023Q4 milestone Nov 13, 2023
@ahouseholder ahouseholder added bug Something isn't working tools Software Tools labels Nov 13, 2023
@ahouseholder ahouseholder merged commit 045c2c6 into main Nov 14, 2023
2 checks passed
@ahouseholder ahouseholder deleted the 384-policy-generator-should-error-if-outcome-weights-do-not-sum-to-1 branch November 14, 2023 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tools Software Tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Policy generator should error if outcome weights do not sum to 1
3 participants