reviewing predictions

This commit is contained in:
Khalim Conn-Kowlessar 2024-05-30 14:23:17 +01:00
parent 47058984d4
commit dc39d6690b

View file

@ -743,7 +743,6 @@ async def build_mds(body: PlanTriggerRequest):
p.get_components(cleaned, photo_supply_lookup, floor_area_decile_thresholds)
# [{'external_wall_insulation': 'EWI (Trad Const)'}, {'loft_insulation': 'LI'}, {'air_source_heat_pump':
# 'ASHP Htg'}, {'solar_pv': 'Solar PV'}]
# p.measures = [{'external_wall_insulation': 'EWI (Trad Const)'}]
mds = Mds(property_instance=p, materials=materials)
property_representative_recommendations, errors = mds.build()
@ -790,13 +789,6 @@ async def build_mds(body: PlanTriggerRequest):
for key, scored in predictions_dict.items():
all_predictions[key] = pd.concat([all_predictions[key], scored])
# We now produce a table of results for the mds report
from utils.s3 import read_dataframe_from_s3_parquet
z = read_dataframe_from_s3_parquet(
bucket_name="retrofit-data-dev",
file_key="sap_change_model/2024-05-28-19-08-25/dataset_rooms.parquet"
)
# TODO: 1) walls_insulation_thickness_ending is not being set in the recommendations_scoring_data,
# insulation_thickness_ending is being set instead
# 2)