add heating model

This commit is contained in:
Michael Duong 2024-07-04 21:36:15 +01:00
parent d164bff8d2
commit 29c46a3034
5 changed files with 30 additions and 30 deletions

View file

@ -2,7 +2,7 @@ name: Sap Change Model Deploy
on:
push:
branches: [ sap-dev, sap-prod, heat-dev, heat-prod, carbon-dev, carbon-prod, lighting-dev, lighting-prod ]
branches: [ sap-dev, sap-prod, heat-dev, heat-prod, carbon-dev, carbon-prod, heating-dev, heating-prod ]
jobs:
deploy:

View file

@ -13,7 +13,7 @@ on:
- "sap-dev"
- "heat-dev"
- "carbon-dev"
- "lighting-dev"
- "heating-dev"
permissions: write-all

View file

@ -5,7 +5,7 @@ on:
# branches:
# - "model-**"
pull_request:
branches: ["sap-dev", "heat-dev", "carbon-dev", "lighting-dev"]
branches: ["sap-dev", "heat-dev", "carbon-dev", "heating-dev"]
label:
types: ["created", "edited"]

View file

@ -32,12 +32,12 @@ default:
feature_processor_config:
subsample_amount: null
subsample_seed: 0
target: lighting_cost_ending
target: heating_cost_ending
identifier_columns: ["uprn"]
# drop_columns: ["heat_demand_change", "carbon_change", "rdsap_change", "heat_demand_ending", "carbon_ending", "days_to_starting", "days_to_ending"]
drop_columns: [
"sap_ending", "heat_demand_change", "carbon_change", "rdsap_change", "heat_demand_ending", "carbon_ending",
"heating_cost_ending", "hot_water_cost_ending",
"lighting_cost_ending", "hot_water_cost_ending",
# "days_to_starting", "days_to_ending",
'number_habitable_rooms_starting', 'number_habitable_rooms_ending', 'number_heated_rooms_starting', 'number_heated_rooms_ending',
'number_habitable_rooms', 'number_heated_rooms']

View file

@ -27,7 +27,7 @@ stages:
- rdsap_change
- heat_demand_ending
- carbon_ending
- heating_cost_ending
- lighting_cost_ending
- hot_water_cost_ending
- number_habitable_rooms_starting
- number_habitable_rooms_ending
@ -38,7 +38,7 @@ stages:
default.feature_processor.feature_processor_config.retain_features:
default.feature_processor.feature_processor_config.subsample_amount:
default.feature_processor.feature_processor_config.subsample_seed: 0
default.feature_processor.feature_processor_config.target: lighting_cost_ending
default.feature_processor.feature_processor_config.target: heating_cost_ending
default.feature_processor.feature_processor_type: dataframe
default.prepare_data.data_filepath:
s3://retrofit-data-dev/sap_change_model/2024-07-03-23-11-39/dataset_rooms.parquet
@ -50,8 +50,8 @@ stages:
outs:
- path: data/prepared_data/
hash: md5
md5: 0f11a02cf75c0421757c0b26184cec33.dir
size: 48971227
md5: c470ebd5aad4f86b99de53ae4778daac.dir
size: 49274194
nfiles: 2
build_model:
cmd: python 2_build_model.py
@ -62,8 +62,8 @@ stages:
size: 4820
- path: data/prepared_data
hash: md5
md5: 0f11a02cf75c0421757c0b26184cec33.dir
size: 48971227
md5: c470ebd5aad4f86b99de53ae4778daac.dir
size: 49274194
nfiles: 2
params:
configs/build_model.yaml:
@ -95,17 +95,17 @@ stages:
outs:
- path: data/fit_predictions/
hash: md5
md5: 36c41f88681ab90668c17ce63fd9c318.dir
size: 3444201
md5: 41bd7d095c49076861fc242121173c9e.dir
size: 3445925
nfiles: 1
- path: data/model/
hash: md5
md5: bb9c3f1538e02e20e918ec36a0b7546f.dir
size: 754271944
nfiles: 37
md5: 03fc0b07da59a7f1ba6d2fbb5502ae90.dir
size: 780161990
nfiles: 36
- path: metrics/fit_metrics.json
hash: md5
md5: 16ae1efa8ac48d8ed978bb3fa67be64a
md5: dc94170c8db0bde6239046def42e616e
size: 225
generate_predictions:
cmd: python 3_generate_predictions.py
@ -116,13 +116,13 @@ stages:
size: 2464
- path: data/model
hash: md5
md5: bb9c3f1538e02e20e918ec36a0b7546f.dir
size: 754271944
nfiles: 37
md5: 03fc0b07da59a7f1ba6d2fbb5502ae90.dir
size: 780161990
nfiles: 36
- path: data/prepared_data
hash: md5
md5: 0f11a02cf75c0421757c0b26184cec33.dir
size: 48971227
md5: c470ebd5aad4f86b99de53ae4778daac.dir
size: 49274194
nfiles: 2
params:
configs/settings.yaml:
@ -134,8 +134,8 @@ stages:
outs:
- path: data/predictions/
hash: md5
md5: 50909a5b19c2551410e921dc9a92bef7.dir
size: 480359
md5: 17f2f6b46e486ecce4453eaa32b80509.dir
size: 480739
nfiles: 1
generate_metrics:
cmd: python 4_generate_metrics.py
@ -146,13 +146,13 @@ stages:
size: 3484
- path: data/predictions
hash: md5
md5: 50909a5b19c2551410e921dc9a92bef7.dir
size: 480359
md5: 17f2f6b46e486ecce4453eaa32b80509.dir
size: 480739
nfiles: 1
- path: data/prepared_data
hash: md5
md5: 0f11a02cf75c0421757c0b26184cec33.dir
size: 48971227
md5: c470ebd5aad4f86b99de53ae4778daac.dir
size: 49274194
nfiles: 2
params:
configs/settings.yaml:
@ -162,8 +162,8 @@ stages:
outs:
- path: metrics/metrics.json
hash: md5
md5: d74767b34a1042c9ab0e3d6535791be6
size: 224
md5: 2d9cf9eb1bb35878d2be076b34bb6cf5
size: 220
generate_scenerio_metrics:
cmd: python 5_generate_scenarios.py
deps: