-
Notifications
You must be signed in to change notification settings - Fork 9
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 Building Grades Data #140
Open
AlexanderTyan
wants to merge
32
commits into
main
Choose a base branch
from
129_building_grades
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
✅ Deploy Preview for radiant-cucurucho-d09bae ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
vkoves
reviewed
Dec 4, 2024
These are the A-graded buildings: IDs (from 2022):
|
TODO: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This generates numerical and letter grades for each building and each year based on GHG Intensity, Energy Mix, and Reporting Status. The results are under
src/data/dist/building-benchmarks-graded.csv
Additionally, this PR contributes the research notebook with initial EDA and visualization around grading (which also has some further ideas to explore). All relevant research notebook files are under
src/data/research
Realtes to #129 (but only the data processing part; still needs to be integrated into UI)
Example Grades
According to the grading so far in this PR, these are a few selected grades (overall across three grading categories):
Visual Results
Overall Numerical Grade Distribution
Overall Letter Grade Distribution
Testing Instructions
Building grading is integrated into the docker compose-based script and is consistent with the instructions in the repository
README.me
. I.e.docker-compose run --rm electrify-chicago bash run_all.sh
produces the graded file into thesrc/data/dist/building-benchmarks-graded.csv
(via functions insrc/data/scripts/grade_buildings.py
).building-benchmarks-graded.csv
is the same asbuilding-benchmarks.csv
but with grading columns attached. Specifically, these are the columns added:GHGIntensityPercentileGrade
: The building this year is better than this percent of other buildings within that same year inGHGIntensity
.GHGIntensityLetterGrade
: Letter grade based onGHGIntensityPercentileGrade
.EnergyMixWeightedPctSum
: The weighted sum of percent of energy consumed by this building from different energy sources reported.EnergyMixWeightedPctSumPercentileGrade
: This building is better than this percent of other buildings within that same year inEnergyMixWeightedPctSum
.EnergyMixWeightedPctSumLetterGrade
: Letter grade based onEnergyMixWeightedPctSumPercentileGrade
.MissingRecordsCount
: How many years this building is missing. This value is the same for the same building across all years.MissingRecordsCountPercentileGrade
: The building is better than this percent of other buildings inMissingRecordsCount
.SubmittedRecordsGrade
: Letter grade based onEnergyMixWeightedPctSumPercentileGrade
.AvgPercentileGrade
: Average of all percentile grades for this building for this year.AvgPercentileLetterGrade
: Letter grade based onAvgPercentileGrade
.The research notebook dev environment is reproducible via docker compose by following instructions in the
README.md
undersrc/data/research
. The notebook is also included atsrc/data/research/building_grade_eda.ipynb
.Checklist: