Skip to content

Commit

Permalink
train on new upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
mikivee committed Sep 27, 2024
1 parent 0d3e3d0 commit a916b55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 1 addition & 4 deletions scripts/build_feature_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -1403,10 +1403,7 @@ def transform_weather_features() -> DataFrame:

# DBTITLE 1,Write out building metadata feature store
table_name = "ml.surrogate_model.building_features"
# TODO: remove this drop statement before retraining-- this is just a temp (yes hacky i know back off) solution to not break dohyo dowstream
df = building_metadata_applicable_upgrades_with_weather_file_city_index.drop(
"heat_pump_sizing_methodology"
)
df = building_metadata_applicable_upgrades_with_weather_file_city_index
if spark.catalog.tableExists(table_name):
fe.write_table(name=table_name, df=df, mode="merge")
else:
Expand Down
5 changes: 2 additions & 3 deletions src/datagen.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ class DataGenerator(tf.keras.utils.Sequence):
- fe (databricks.feature_engineering.client.FeatureEngineeringClient: client for interacting with the
Databricks Feature Engineering in Unity Catalog
TODO: modify this be more flexible to use this at inference time only (e.g, don't load various feature tables into mem)
"""

# init FeatureEngineering client
Expand Down Expand Up @@ -70,6 +69,7 @@ class DataGenerator(tf.keras.utils.Sequence):
# heating
"heating_fuel",
"heating_appliance_type",
"heat_pump_sizing_methodology",
"has_ducted_heating",
"heating_efficiency_nominal_percentage",
"heating_setpoint_degrees_f",
Expand Down Expand Up @@ -155,8 +155,7 @@ class DataGenerator(tf.keras.utils.Sequence):
"propane": ["propane__total"],
}

# TODO: add 13.01 and 11.05 before training new model
supported_upgrade_ids = [0.0, 1.0, 3.0, 4.0, 6.0, 9.0]
supported_upgrade_ids = [0.0, 1.0, 3.0, 4.0, 6.0, 9.0, 13.01, 11.05]

def __init__(
self,
Expand Down

0 comments on commit a916b55

Please sign in to comment.