-
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
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for radiant-cucurucho-d09bae ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
These are the A-graded buildings: IDs (from 2022):
|
TODO: |
@AlexanderTyan - I wanted to check in on this - I'm going to start trying to look at detecting anomolous buildings, so if it's helpful maybe we can get this into a mergable state where we have the grades integrated into the main data and can |
@vkoves ah sorry about that. yeah, let me work on that this week |
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: