Enforce running sampling probability script, try 2 #584
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Description
Companion PR: https://github.com/NREL/resstock-estimation/pull/127.
Add in a column called the
sampling_probability
to each housing characteristic. Thesampling_probability
is the probability that a given row in the housing characteristic TSV file is sampled. This value is calculated from the product of the marginal probability of each of the dependency values being sampled for that specific row. For each housing characteristic, thesampling_probability
column should sum to 1.0 and have non-negative values.This particular column is produced via a pytest (utils/test/test_sampling_probability.py) in the resstock-estimation repository. The code that calculates the column is pulled in from a feature of the EULP-uncertainty-quantification repo.
Checklist
Not all may apply:
project_testing
project_testing
runs without any failuresFor more information on how to perform these checklist items, see the documentation's Advanced Tutorial.