Added basic tests for sap model

This commit is contained in:
Khalim Conn-Kowlessar 2023-07-05 11:52:35 +01:00
parent a79c2852cc
commit 18953c9f0b
3 changed files with 756 additions and 19 deletions

View file

@ -3,12 +3,13 @@ import pandas as pd
import statsmodels.api as sm
import matplotlib.pyplot as plt
import pickle
from typing import Any, Dict, Tuple
from typing import Any, Dict, Tuple, Optional, List
from sklearn.model_selection import train_test_split
from sklearn.metrics import mean_squared_error, mean_absolute_error, r2_score, explained_variance_score, \
median_absolute_error, mean_absolute_percentage_error
from sklearn.ensemble import RandomForestRegressor
from sklearn.inspection import permutation_importance
from model_data.EpcClean import EpcClean
from statsmodels.stats.outliers_influence import variance_inflation_factor
from tqdm import tqdm
@ -16,8 +17,9 @@ from model_data.utils import setup_logger
logger = setup_logger()
with open("all_data.pkl", "rb") as f:
all_data = pickle.load(f)
# with open("all_data.pkl", "rb") as f:
# all_data = pickle.load(f)
class SapModel:
@ -116,7 +118,12 @@ class SapModel:
"number-open-fireplaces", "fixed-lighting-outlets-count", 'extension-count', 'multi-glaze-proportion'
]
def __init__(self, data, cleaner, test_size=0.2, random_state=None):
def __init__(
self, data: List[Dict],
cleaner: EpcClean,
test_size: Optional[float] = 0.2,
random_state: Optional[int] = None
):
self.df = pd.DataFrame(data)
self.cleaner = cleaner
self.random_state = random_state if random_state is not None else 42
@ -148,9 +155,10 @@ class SapModel:
self.final_fit_df = None
self.diagnosis = {}
def run(self, plot=False):
def run(self, plot: bool = False) -> None:
"""
A pipeline method to run all necessary methods in correct order.
:param plot: Boolean to indicate whether to plot the regression
"""
try:
self.create_dataset()
@ -158,13 +166,21 @@ class SapModel:
if plot:
self.plot_regression(self.fit_df)
except Exception as e:
print("An error occurred during execution.")
print(str(e))
logger.error("An error occurred during execution.")
logger.error(str(e))
def _merge_with_u_values(
self, model_data: pd.DataFrame, description: str, thermal_transmittance: str
) -> pd.DataFrame:
"""
Utility function to merge u value data with model data
:param model_data: Pandas dataframe which is the main modelling dataset
:param description: Name of the description column for which we're merging u-values onto
:param thermal_transmittance: Name of the thermal transmittance column
:return:
"""
u_values = pd.DataFrame(self.cleaner.cleaned[f"{description}-description"])[
["original_description", thermal_transmittance]].rename(
columns={thermal_transmittance: f"{description}_u_value"}
@ -180,6 +196,11 @@ class SapModel:
return model_data
def _append_cleaned_data(self, model_data: pd.DataFrame) -> pd.DataFrame:
"""
Appends cleaned data into the model data.
:param model_data: Original model data.
:return: Model data with cleaned data appended.
"""
for description in ["walls", "floor", "roof"]:
model_data = self._merge_with_u_values(model_data, description, "thermal_transmittance")
@ -197,13 +218,18 @@ class SapModel:
return model_data
@staticmethod
def _convert_transaction_type(model_data):
def _convert_transaction_type(model_data: pd.DataFrame) -> pd.DataFrame:
"""
Converts transaction type to boolean
:param model_data: Model data with transaction type.
:return: Model data with converted transaction type.
"""
model_data["is_rdsap"] = model_data["transaction-type"] != "new dwelling"
model_data = model_data.drop(columns=["transaction-type"])
return model_data
@staticmethod
def bucket_and_fill(df, column_name, n_bins=10):
def bucket_and_fill(df: pd.DataFrame, column_name: str, n_bins: int = 10) -> pd.DataFrame:
"""
Simple utility function to bucket up features into bins and then fill any missing values with "NO_RECORD"
:param df: Dataframe of features to be binned
@ -231,6 +257,10 @@ class SapModel:
for col in self.BUCKET_VARIABLES:
model_data[col] = pd.to_numeric(model_data[col], errors='coerce')
# If all values are missing, set all values to 0 - this column will get dropped
if all(pd.isnull(model_data[col])):
model_data[col + "_bucket"] = "NO_RECORD"
continue
model_data = self.bucket_and_fill(model_data, col)
# Replace the data with the binned version
@ -248,13 +278,17 @@ class SapModel:
return model_data
@staticmethod
def clean_missings(model_data):
def clean_missings(model_data: pd.DataFrame) -> pd.DataFrame:
"""
Fills categorical missing data with sensible values
:param model_data: Original model data.
:return: Model data with cleaned categorical data.
"""
# Cleaning of energy-tariff and construction-age-band hurt prediction performance, indicating there is
# potentially
# a notable difference between a "" missing and a "NO DATA!" missing, worth differentiating
model_data["construction-age-band"].value_counts()
model_data["mechanical-ventilation"] = np.where(
model_data["mechanical-ventilation"] == "", "NO DATA!", model_data["mechanical-ventilation"]
)
@ -551,7 +585,7 @@ class SapModel:
# There are some features, we do not want to remove
required_features = [
"walls_u_value", "floor_u_value", "roof_u_value"
"walls_u_value", "floor_u_value", "roof_u_value", "idx", "is_rdsap"
]
vifs = vifs[~vifs["features"].isin(required_features)]
@ -619,9 +653,3 @@ class SapModel:
worst_errors = errors.nlargest(n, 'Absolute Residual')
return metrics, worst_errors
self = SapModel(
data=all_data["data"],
cleaner=all_data["cleaner"]
)

View file

@ -0,0 +1,674 @@
data = [
{'low-energy-fixed-light-count': '', 'address': '2 Aspenlea Road', 'uprn-source': 'Address Matched',
'floor-height': '2.97', 'heating-cost-potential': '260', 'unheated-corridor-length': '',
'hot-water-cost-potential': '41', 'construction-age-band': '2021', 'potential-energy-rating': 'A',
'mainheat-energy-eff': 'Good', 'windows-env-eff': 'Very Good', 'lighting-energy-eff': 'Very Good',
'environment-impact-potential': '94', 'glazed-type': '', 'heating-cost-current': '260', 'address3': '',
'mainheatcont-description': 'Programmer, room thermostat and TRVs', 'sheating-energy-eff': 'N/A',
'property-type': 'Bungalow', 'local-authority-label': 'Hammersmith and Fulham',
'fixed-lighting-outlets-count': '11', 'energy-tariff': 'standard tariff', 'mechanical-ventilation': '',
'hot-water-cost-current': '66', 'county': '', 'postcode': 'W6 8LJ', 'solar-water-heating-flag': '',
'constituency': 'E14000726', 'co2-emissions-potential': '0.2', 'number-heated-rooms': '',
'floor-description': 'Average thermal transmittance 0.15 W/m-¦K', 'energy-consumption-potential': '16',
'local-authority': 'E09000013', 'built-form': 'Detached', 'number-open-fireplaces': '0',
'windows-description': 'High performance glazing', 'glazed-area': '', 'inspection-date': '2021-05-24',
'mains-gas-flag': '', 'co2-emiss-curr-per-floor-area': '24', 'address1': '2 Aspenlea Road',
'heat-loss-corridor': '', 'flat-storey-count': '', 'constituency-label': 'Hammersmith', 'roof-energy-eff': 'Good',
'total-floor-area': '54.0', 'building-reference-number': '10000980452', 'environment-impact-current': '80',
'co2-emissions-current': '1.3', 'roof-description': 'Average thermal transmittance 0.17 W/m-¦K',
'floor-energy-eff': 'Very Good', 'number-habitable-rooms': '', 'address2': '', 'hot-water-env-eff': 'Good',
'posttown': 'LONDON', 'mainheatc-energy-eff': 'Good', 'main-fuel': 'Gas: mains gas',
'lighting-env-eff': 'Very Good', 'windows-energy-eff': 'Very Good', 'floor-env-eff': 'Very Good',
'sheating-env-eff': 'N/A', 'lighting-description': 'Low energy lighting in all fixed outlets',
'roof-env-eff': 'Good', 'walls-energy-eff': 'Very Good', 'photo-supply': '', 'lighting-cost-potential': '47',
'mainheat-env-eff': 'Good', 'multi-glaze-proportion': '100', 'main-heating-controls': '',
'lodgement-datetime': '2021-05-24 14:26:30', 'flat-top-storey': 'N', 'current-energy-rating': 'C',
'secondheat-description': 'None', 'walls-env-eff': 'Very Good', 'transaction-type': 'new dwelling',
'uprn': '34169219', 'current-energy-efficiency': '77', 'energy-consumption-current': '135',
'mainheat-description': 'Boiler & underfloor, mains gas', 'lighting-cost-current': '47',
'lodgement-date': '2021-05-24', 'extension-count': '', 'mainheatc-env-eff': 'Good',
'lmk-key': 'eba2f9b74eba10683a6cc097985d6c7a6773d18a9407933ae03b3eb32607edec', 'wind-turbine-count': '0',
'tenure': 'Not defined - use in the case of a new dwelling for which the intended tenure in not known. It is no',
'floor-level': '', 'potential-energy-efficiency': '92', 'hot-water-energy-eff': 'Good',
'low-energy-lighting': '100', 'walls-description': 'Average thermal transmittance 0.25 W/m-¦K',
'hotwater-description': 'From main system'},
{'low-energy-fixed-light-count': '12', 'address': '1d, Cromwell Grove', 'uprn-source': 'Address Matched',
'floor-height': '', 'heating-cost-potential': '503', 'unheated-corridor-length': '',
'hot-water-cost-potential': '119', 'construction-age-band': 'NO DATA!', 'potential-energy-rating': 'C',
'mainheat-energy-eff': 'Very Poor', 'windows-env-eff': 'Very Good', 'lighting-energy-eff': 'Very Good',
'environment-impact-potential': '80', 'glazed-type': 'NO DATA!', 'heating-cost-current': '500', 'address3': '',
'mainheatcont-description': 'Programmer and appliance thermostats', 'sheating-energy-eff': 'N/A',
'property-type': 'Bungalow', 'local-authority-label': 'Hammersmith and Fulham',
'fixed-lighting-outlets-count': '12', 'energy-tariff': 'standard tariff', 'mechanical-ventilation': 'NO DATA!',
'hot-water-cost-current': '259', 'county': 'Greater London Authority', 'postcode': 'W6 7RQ',
'solar-water-heating-flag': '', 'constituency': 'E14000726', 'co2-emissions-potential': '1.2',
'number-heated-rooms': '', 'floor-description': 'Average thermal transmittance 0.15 W/m-¦K',
'energy-consumption-potential': '119', 'local-authority': 'E09000013', 'built-form': 'End-Terrace',
'number-open-fireplaces': '0', 'windows-description': 'High performance glazing', 'glazed-area': 'NO DATA!',
'inspection-date': '2018-10-29', 'mains-gas-flag': '', 'co2-emiss-curr-per-floor-area': '44',
'address1': '1d, Cromwell Grove', 'heat-loss-corridor': 'NO DATA!', 'flat-storey-count': '',
'constituency-label': 'Hammersmith', 'roof-energy-eff': 'Very Good', 'total-floor-area': '58.0',
'building-reference-number': '9713111678', 'environment-impact-current': '62', 'co2-emissions-current': '2.5',
'roof-description': 'Average thermal transmittance 0.13 W/m-¦K', 'floor-energy-eff': 'Very Good',
'number-habitable-rooms': '', 'address2': '', 'hot-water-env-eff': 'Poor', 'posttown': 'LONDON',
'mainheatc-energy-eff': 'Good', 'main-fuel': 'Electricity: electricity, unspecified tariff',
'lighting-env-eff': 'Very Good', 'windows-energy-eff': 'Very Good', 'floor-env-eff': 'Very Good',
'sheating-env-eff': 'N/A', 'lighting-description': 'Low energy lighting in all fixed outlets',
'roof-env-eff': 'Very Good', 'walls-energy-eff': 'Very Good', 'photo-supply': '', 'lighting-cost-potential': '44',
'mainheat-env-eff': 'Poor', 'multi-glaze-proportion': '', 'main-heating-controls': '',
'lodgement-datetime': '2018-10-29 15:20:04', 'flat-top-storey': '', 'current-energy-rating': 'D',
'secondheat-description': 'None', 'walls-env-eff': 'Very Good', 'transaction-type': 'new dwelling',
'uprn': '34162683', 'current-energy-efficiency': '58', 'energy-consumption-current': '258',
'mainheat-description': 'Room heaters, electric', 'lighting-cost-current': '44', 'lodgement-date': '2018-10-29',
'extension-count': '', 'mainheatc-env-eff': 'Good', 'lmk-key': '1674707719262018102915200471818698',
'wind-turbine-count': '', 'tenure': 'owner-occupied', 'floor-level': 'NO DATA!',
'potential-energy-efficiency': '77', 'hot-water-energy-eff': 'Very Poor', 'low-energy-lighting': '100',
'walls-description': 'Average thermal transmittance 0.26 W/m-¦K',
'hotwater-description': 'Electric immersion, standard tariff'},
{'low-energy-fixed-light-count': '1', 'address': 'The School House, Burlington Danes Academy, Wood Lane',
'uprn-source': '', 'floor-height': '', 'heating-cost-potential': '629', 'unheated-corridor-length': '',
'hot-water-cost-potential': '89', 'construction-age-band': 'NO DATA!', 'potential-energy-rating': 'C',
'mainheat-energy-eff': 'Very Poor', 'windows-env-eff': 'Very Good', 'lighting-energy-eff': 'Very Good',
'environment-impact-potential': '78', 'glazed-type': 'NO DATA!', 'heating-cost-current': '629',
'address3': 'Wood Lane', 'mainheatcont-description': 'Programmer and appliance thermostats',
'sheating-energy-eff': 'N/A', 'property-type': 'Bungalow', 'local-authority-label': 'Hammersmith and Fulham',
'fixed-lighting-outlets-count': '1', 'energy-tariff': 'standard tariff', 'mechanical-ventilation': 'NO DATA!',
'hot-water-cost-current': '205', 'county': 'Greater London Authority', 'postcode': 'W12 0HL',
'solar-water-heating-flag': '', 'constituency': 'E14000726', 'co2-emissions-potential': '1.7',
'number-heated-rooms': '', 'floor-description': 'Average thermal transmittance 0.22 W/m-¦K',
'energy-consumption-potential': '111', 'local-authority': 'E09000013', 'built-form': 'Detached',
'number-open-fireplaces': '0', 'windows-description': 'High performance glazing', 'glazed-area': 'NO DATA!',
'inspection-date': '2018-02-01', 'mains-gas-flag': '', 'co2-emiss-curr-per-floor-area': '35',
'address1': 'The School House', 'heat-loss-corridor': 'NO DATA!', 'flat-storey-count': '',
'constituency-label': 'Hammersmith', 'roof-energy-eff': 'Very Good', 'total-floor-area': '86.0',
'building-reference-number': '6433906578', 'environment-impact-current': '65', 'co2-emissions-current': '3.0',
'roof-description': 'Average thermal transmittance 0.13 W/m-¦K', 'floor-energy-eff': 'Good',
'number-habitable-rooms': '', 'address2': 'Burlington Danes Academy', 'hot-water-env-eff': 'Very Poor',
'posttown': 'LONDON', 'mainheatc-energy-eff': 'Good', 'main-fuel': 'Electricity: electricity, unspecified tariff',
'lighting-env-eff': 'Very Good', 'windows-energy-eff': 'Very Good', 'floor-env-eff': 'Good',
'sheating-env-eff': 'N/A', 'lighting-description': 'Low energy lighting in all fixed outlets',
'roof-env-eff': 'Very Good', 'walls-energy-eff': 'Very Good', 'photo-supply': '', 'lighting-cost-potential': '59',
'mainheat-env-eff': 'Poor', 'multi-glaze-proportion': '', 'main-heating-controls': '',
'lodgement-datetime': '2018-02-01 10:13:11', 'flat-top-storey': '', 'current-energy-rating': 'D',
'secondheat-description': 'Room heaters, dual fuel (mineral and wood)', 'walls-env-eff': 'Very Good',
'transaction-type': 'new dwelling', 'uprn': '', 'current-energy-efficiency': '63',
'energy-consumption-current': '200', 'mainheat-description': 'Room heaters, electric',
'lighting-cost-current': '59', 'lodgement-date': '2018-02-01', 'extension-count': '', 'mainheatc-env-eff': 'Good',
'lmk-key': '1604639899062018020110131146898768', 'wind-turbine-count': '', 'tenure': 'unknown',
'floor-level': 'NO DATA!', 'potential-energy-efficiency': '77', 'hot-water-energy-eff': 'Very Poor',
'low-energy-lighting': '100', 'walls-description': 'Average thermal transmittance 0.15 W/m-¦K',
'hotwater-description': 'Electric instantaneous at point of use'},
{'low-energy-fixed-light-count': '14', 'address': '3 Victor Wilkins Bungalows, Peabody Estate, Fulham Palace Road',
'uprn-source': 'Address Matched', 'floor-height': '', 'heating-cost-potential': '434',
'unheated-corridor-length': '', 'hot-water-cost-potential': '79', 'construction-age-band': 'NO DATA!',
'potential-energy-rating': 'C', 'mainheat-energy-eff': 'Good', 'windows-env-eff': 'Very Good',
'lighting-energy-eff': 'Very Good', 'environment-impact-potential': '77', 'glazed-type': 'NO DATA!',
'heating-cost-current': '434', 'address3': 'Fulham Palace Road',
'mainheatcont-description': 'Time and temperature zone control', 'sheating-energy-eff': 'N/A',
'property-type': 'Bungalow', 'local-authority-label': 'Hammersmith and Fulham',
'fixed-lighting-outlets-count': '14', 'energy-tariff': 'standard tariff', 'mechanical-ventilation': 'NO DATA!',
'hot-water-cost-current': '79', 'county': 'Greater London Authority', 'postcode': 'W6 9FU',
'solar-water-heating-flag': '', 'constituency': 'E14000726', 'co2-emissions-potential': '2.0',
'number-heated-rooms': '', 'floor-description': 'Average thermal transmittance 0.15 W/m-¦K',
'energy-consumption-potential': '148', 'local-authority': 'E09000013', 'built-form': 'End-Terrace',
'number-open-fireplaces': '0', 'windows-description': 'High performance glazing', 'glazed-area': 'NO DATA!',
'inspection-date': '2015-02-11', 'mains-gas-flag': '', 'co2-emiss-curr-per-floor-area': '28',
'address1': '3 Victor Wilkins Bungalows', 'heat-loss-corridor': 'NO DATA!', 'flat-storey-count': '',
'constituency-label': 'Hammersmith', 'roof-energy-eff': 'Very Good', 'total-floor-area': '72.0',
'building-reference-number': '8344023378', 'environment-impact-current': '77', 'co2-emissions-current': '2.0',
'roof-description': 'Average thermal transmittance 0.12 W/m-¦K', 'floor-energy-eff': 'Very Good',
'number-habitable-rooms': '', 'address2': 'Peabody Estate', 'hot-water-env-eff': 'Good', 'posttown': 'LONDON',
'mainheatc-energy-eff': 'Very Good',
'main-fuel': 'mains gas - this is for backwards compatibility only and should not be used',
'lighting-env-eff': 'Very Good', 'windows-energy-eff': 'Very Good', 'floor-env-eff': 'Very Good',
'sheating-env-eff': 'N/A', 'lighting-description': 'Low energy lighting in all fixed outlets',
'roof-env-eff': 'Very Good', 'walls-energy-eff': 'Very Good', 'photo-supply': '', 'lighting-cost-potential': '47',
'mainheat-env-eff': 'Good', 'multi-glaze-proportion': '', 'main-heating-controls': '',
'lodgement-datetime': '2015-02-12 17:44:45', 'flat-top-storey': '', 'current-energy-rating': 'C',
'secondheat-description': 'None', 'walls-env-eff': 'Very Good', 'transaction-type': 'new dwelling',
'uprn': '34155690', 'current-energy-efficiency': '75', 'energy-consumption-current': '148',
'mainheat-description': 'Boiler and radiators, mains gas', 'lighting-cost-current': '47',
'lodgement-date': '2015-02-12', 'extension-count': '', 'mainheatc-env-eff': 'Very Good',
'lmk-key': '1281430909922015021217444533598985', 'wind-turbine-count': '', 'tenure': 'unknown',
'floor-level': 'NO DATA!', 'potential-energy-efficiency': '75', 'hot-water-energy-eff': 'Good',
'low-energy-lighting': '', 'walls-description': 'Average thermal transmittance 0.18 W/m-¦K',
'hotwater-description': 'From main system'},
{'low-energy-fixed-light-count': '18', 'address': '1 Pugin Bungalow, Peabody Estate, Fulham Palace Road',
'uprn-source': 'Address Matched', 'floor-height': '', 'heating-cost-potential': '497',
'unheated-corridor-length': '', 'hot-water-cost-potential': '85', 'construction-age-band': 'NO DATA!',
'potential-energy-rating': 'C', 'mainheat-energy-eff': 'Good', 'windows-env-eff': 'Very Good',
'lighting-energy-eff': 'Very Good', 'environment-impact-potential': '76', 'glazed-type': 'NO DATA!',
'heating-cost-current': '497', 'address3': 'Fulham Palace Road',
'mainheatcont-description': 'Time and temperature zone control', 'sheating-energy-eff': 'N/A',
'property-type': 'Bungalow', 'local-authority-label': 'Hammersmith and Fulham',
'fixed-lighting-outlets-count': '18', 'energy-tariff': 'standard tariff', 'mechanical-ventilation': 'NO DATA!',
'hot-water-cost-current': '85', 'county': 'Greater London Authority', 'postcode': 'W6 9FU',
'solar-water-heating-flag': '', 'constituency': 'E14000726', 'co2-emissions-potential': '2.4',
'number-heated-rooms': '', 'floor-description': 'Average thermal transmittance 0.15 W/m-¦K',
'energy-consumption-potential': '140', 'local-authority': 'E09000013', 'built-form': 'Semi-Detached',
'number-open-fireplaces': '0', 'windows-description': 'High performance glazing', 'glazed-area': 'NO DATA!',
'inspection-date': '2015-02-11', 'mains-gas-flag': '', 'co2-emiss-curr-per-floor-area': '27',
'address1': '1 Pugin Bungalow', 'heat-loss-corridor': 'NO DATA!', 'flat-storey-count': '',
'constituency-label': 'Hammersmith', 'roof-energy-eff': 'Very Good', 'total-floor-area': '89.0',
'building-reference-number': '5204023378', 'environment-impact-current': '76', 'co2-emissions-current': '2.4',
'roof-description': 'Average thermal transmittance 0.11 W/m-¦K', 'floor-energy-eff': 'Very Good',
'number-habitable-rooms': '', 'address2': 'Peabody Estate', 'hot-water-env-eff': 'Good', 'posttown': 'LONDON',
'mainheatc-energy-eff': 'Very Good',
'main-fuel': 'mains gas - this is for backwards compatibility only and should not be used',
'lighting-env-eff': 'Very Good', 'windows-energy-eff': 'Very Good', 'floor-env-eff': 'Very Good',
'sheating-env-eff': 'N/A', 'lighting-description': 'Low energy lighting in all fixed outlets',
'roof-env-eff': 'Very Good', 'walls-energy-eff': 'Very Good', 'photo-supply': '', 'lighting-cost-potential': '55',
'mainheat-env-eff': 'Good', 'multi-glaze-proportion': '', 'main-heating-controls': '',
'lodgement-datetime': '2015-02-12 17:36:45', 'flat-top-storey': '', 'current-energy-rating': 'C',
'secondheat-description': 'None', 'walls-env-eff': 'Very Good', 'transaction-type': 'new dwelling',
'uprn': '34155691', 'current-energy-efficiency': '76', 'energy-consumption-current': '140',
'mainheat-description': 'Boiler and radiators, mains gas', 'lighting-cost-current': '55',
'lodgement-date': '2015-02-12', 'extension-count': '', 'mainheatc-env-eff': 'Very Good',
'lmk-key': '1281255029242015021217364536359498', 'wind-turbine-count': '', 'tenure': 'unknown',
'floor-level': 'NO DATA!', 'potential-energy-efficiency': '76', 'hot-water-energy-eff': 'Good',
'low-energy-lighting': '', 'walls-description': 'Average thermal transmittance 0.17 W/m-¦K',
'hotwater-description': 'From main system'},
{'low-energy-fixed-light-count': '8', 'address': '1 Victor Wilkins Bungalows, Peabody Estate, Fulham Palace Road',
'uprn-source': 'Address Matched', 'floor-height': '', 'heating-cost-potential': '403',
'unheated-corridor-length': '', 'hot-water-cost-potential': '76', 'construction-age-band': 'NO DATA!',
'potential-energy-rating': 'C', 'mainheat-energy-eff': 'Good', 'windows-env-eff': 'Very Good',
'lighting-energy-eff': 'Very Good', 'environment-impact-potential': '77', 'glazed-type': 'NO DATA!',
'heating-cost-current': '403', 'address3': 'Fulham Palace Road',
'mainheatcont-description': 'Time and temperature zone control', 'sheating-energy-eff': 'N/A',
'property-type': 'Bungalow', 'local-authority-label': 'Hammersmith and Fulham',
'fixed-lighting-outlets-count': '8', 'energy-tariff': 'standard tariff', 'mechanical-ventilation': 'NO DATA!',
'hot-water-cost-current': '76', 'county': 'Greater London Authority', 'postcode': 'W6 9FU',
'solar-water-heating-flag': '', 'constituency': 'E14000726', 'co2-emissions-potential': '1.9',
'number-heated-rooms': '', 'floor-description': 'Average thermal transmittance 0.15 W/m-¦K',
'energy-consumption-potential': '151', 'local-authority': 'E09000013', 'built-form': 'End-Terrace',
'number-open-fireplaces': '0', 'windows-description': 'High performance glazing', 'glazed-area': 'NO DATA!',
'inspection-date': '2015-02-11', 'mains-gas-flag': '', 'co2-emiss-curr-per-floor-area': '29',
'address1': '1 Victor Wilkins Bungalows', 'heat-loss-corridor': 'NO DATA!', 'flat-storey-count': '',
'constituency-label': 'Hammersmith', 'roof-energy-eff': 'Very Good', 'total-floor-area': '65.0',
'building-reference-number': '4824023378', 'environment-impact-current': '77', 'co2-emissions-current': '1.9',
'roof-description': 'Average thermal transmittance 0.12 W/m-¦K', 'floor-energy-eff': 'Very Good',
'number-habitable-rooms': '', 'address2': 'Peabody Estate', 'hot-water-env-eff': 'Good', 'posttown': 'LONDON',
'mainheatc-energy-eff': 'Very Good',
'main-fuel': 'mains gas - this is for backwards compatibility only and should not be used',
'lighting-env-eff': 'Very Good', 'windows-energy-eff': 'Very Good', 'floor-env-eff': 'Very Good',
'sheating-env-eff': 'N/A', 'lighting-description': 'Low energy lighting in all fixed outlets',
'roof-env-eff': 'Very Good', 'walls-energy-eff': 'Very Good', 'photo-supply': '', 'lighting-cost-potential': '43',
'mainheat-env-eff': 'Good', 'multi-glaze-proportion': '', 'main-heating-controls': '',
'lodgement-datetime': '2015-02-12 17:39:26', 'flat-top-storey': '', 'current-energy-rating': 'C',
'secondheat-description': 'None', 'walls-env-eff': 'Very Good', 'transaction-type': 'new dwelling',
'uprn': '34155688', 'current-energy-efficiency': '75', 'energy-consumption-current': '151',
'mainheat-description': 'Boiler and radiators, mains gas', 'lighting-cost-current': '43',
'lodgement-date': '2015-02-12', 'extension-count': '', 'mainheatc-env-eff': 'Very Good',
'lmk-key': '1281195060112015021217392692950438', 'wind-turbine-count': '', 'tenure': 'unknown',
'floor-level': 'NO DATA!', 'potential-energy-efficiency': '75', 'hot-water-energy-eff': 'Good',
'low-energy-lighting': '', 'walls-description': 'Average thermal transmittance 0.18 W/m-¦K',
'hotwater-description': 'From main system'},
{'low-energy-fixed-light-count': '9', 'address': '2 Victor Wilkins Bungalows, Peabody Estate, Fulham Palace Road',
'uprn-source': 'Address Matched', 'floor-height': '', 'heating-cost-potential': '325',
'unheated-corridor-length': '', 'hot-water-cost-potential': '67', 'construction-age-band': 'NO DATA!',
'potential-energy-rating': 'C', 'mainheat-energy-eff': 'Good', 'windows-env-eff': 'Very Good',
'lighting-energy-eff': 'Very Good', 'environment-impact-potential': '79', 'glazed-type': 'NO DATA!',
'heating-cost-current': '325', 'address3': 'Fulham Palace Road',
'mainheatcont-description': 'Time and temperature zone control', 'sheating-energy-eff': 'N/A',
'property-type': 'Bungalow', 'local-authority-label': 'Hammersmith and Fulham',
'fixed-lighting-outlets-count': '9', 'energy-tariff': 'standard tariff', 'mechanical-ventilation': 'NO DATA!',
'hot-water-cost-current': '67', 'county': 'Greater London Authority', 'postcode': 'W6 9FU',
'solar-water-heating-flag': '', 'constituency': 'E14000726', 'co2-emissions-potential': '1.4',
'number-heated-rooms': '', 'floor-description': 'Average thermal transmittance 0.15 W/m-¦K',
'energy-consumption-potential': '156', 'local-authority': 'E09000013', 'built-form': 'Mid-Terrace',
'number-open-fireplaces': '0', 'windows-description': 'High performance glazing', 'glazed-area': 'NO DATA!',
'inspection-date': '2015-02-11', 'mains-gas-flag': '', 'co2-emiss-curr-per-floor-area': '30',
'address1': '2 Victor Wilkins Bungalows', 'heat-loss-corridor': 'NO DATA!', 'flat-storey-count': '',
'constituency-label': 'Hammersmith', 'roof-energy-eff': 'Very Good', 'total-floor-area': '48.0',
'building-reference-number': '4534023378', 'environment-impact-current': '79', 'co2-emissions-current': '1.4',
'roof-description': 'Average thermal transmittance 0.11 W/m-¦K', 'floor-energy-eff': 'Very Good',
'number-habitable-rooms': '', 'address2': 'Peabody Estate', 'hot-water-env-eff': 'Good', 'posttown': 'LONDON',
'mainheatc-energy-eff': 'Very Good',
'main-fuel': 'mains gas - this is for backwards compatibility only and should not be used',
'lighting-env-eff': 'Very Good', 'windows-energy-eff': 'Very Good', 'floor-env-eff': 'Very Good',
'sheating-env-eff': 'N/A', 'lighting-description': 'Low energy lighting in all fixed outlets',
'roof-env-eff': 'Very Good', 'walls-energy-eff': 'Very Good', 'photo-supply': '', 'lighting-cost-potential': '33',
'mainheat-env-eff': 'Good', 'multi-glaze-proportion': '', 'main-heating-controls': '',
'lodgement-datetime': '2015-02-12 17:42:21', 'flat-top-storey': '', 'current-energy-rating': 'C',
'secondheat-description': 'None', 'walls-env-eff': 'Very Good', 'transaction-type': 'new dwelling',
'uprn': '34155689', 'current-energy-efficiency': '76', 'energy-consumption-current': '156',
'mainheat-description': 'Boiler and radiators, mains gas', 'lighting-cost-current': '33',
'lodgement-date': '2015-02-12', 'extension-count': '', 'mainheatc-env-eff': 'Very Good',
'lmk-key': '1281177390012015021217422192950435', 'wind-turbine-count': '', 'tenure': 'unknown',
'floor-level': 'NO DATA!', 'potential-energy-efficiency': '76', 'hot-water-energy-eff': 'Good',
'low-energy-lighting': '', 'walls-description': 'Average thermal transmittance 0.17 W/m-¦K',
'hotwater-description': 'From main system'},
{'low-energy-fixed-light-count': '8', 'address': '25, Ravenscourt Gardens', 'uprn-source': 'Address Matched',
'floor-height': '', 'heating-cost-potential': '198', 'unheated-corridor-length': '',
'hot-water-cost-potential': '41', 'construction-age-band': 'NO DATA!', 'potential-energy-rating': 'B',
'mainheat-energy-eff': 'Good', 'windows-env-eff': 'Very Good', 'lighting-energy-eff': 'Very Good',
'environment-impact-potential': '89', 'glazed-type': 'NO DATA!', 'heating-cost-current': '198', 'address3': '',
'mainheatcont-description': 'Time and temperature zone control', 'sheating-energy-eff': 'N/A',
'property-type': 'Bungalow', 'local-authority-label': 'Hammersmith and Fulham',
'fixed-lighting-outlets-count': '8', 'energy-tariff': 'standard tariff', 'mechanical-ventilation': 'NO DATA!',
'hot-water-cost-current': '69', 'county': 'Greater London Authority', 'postcode': 'W6 0TU',
'solar-water-heating-flag': '', 'constituency': 'E14000726', 'co2-emissions-potential': '0.6',
'number-heated-rooms': '', 'floor-description': 'Average thermal transmittance 0.14 W/m-¦K',
'energy-consumption-potential': '93', 'local-authority': 'E09000013', 'built-form': 'Detached',
'number-open-fireplaces': '0', 'windows-description': 'High performance glazing', 'glazed-area': 'NO DATA!',
'inspection-date': '2014-11-07', 'mains-gas-flag': '', 'co2-emiss-curr-per-floor-area': '21',
'address1': '25, Ravenscourt Gardens', 'heat-loss-corridor': 'NO DATA!', 'flat-storey-count': '',
'constituency-label': 'Hammersmith', 'roof-energy-eff': 'Good', 'total-floor-area': '36.0',
'building-reference-number': '8243769278', 'environment-impact-current': '87', 'co2-emissions-current': '0.7',
'roof-description': 'Average thermal transmittance 0.15 W/m-¦K', 'floor-energy-eff': 'Very Good',
'number-habitable-rooms': '', 'address2': '', 'hot-water-env-eff': 'Good', 'posttown': 'LONDON',
'mainheatc-energy-eff': 'Very Good',
'main-fuel': 'mains gas - this is for backwards compatibility only and should not be used',
'lighting-env-eff': 'Very Good', 'windows-energy-eff': 'Very Good', 'floor-env-eff': 'Very Good',
'sheating-env-eff': 'N/A', 'lighting-description': 'Low energy lighting in all fixed outlets',
'roof-env-eff': 'Good', 'walls-energy-eff': 'Very Good', 'photo-supply': '', 'lighting-cost-potential': '26',
'mainheat-env-eff': 'Good', 'multi-glaze-proportion': '', 'main-heating-controls': '',
'lodgement-datetime': '2014-11-07 10:41:55', 'flat-top-storey': '', 'current-energy-rating': 'B',
'secondheat-description': 'None', 'walls-env-eff': 'Very Good', 'transaction-type': 'new dwelling',
'uprn': '34153661', 'current-energy-efficiency': '81', 'energy-consumption-current': '117',
'mainheat-description': 'Boiler and underfloor heating, mains gas', 'lighting-cost-current': '26',
'lodgement-date': '2014-11-07', 'extension-count': '', 'mainheatc-env-eff': 'Very Good',
'lmk-key': '1231486579062014110710415529438084', 'wind-turbine-count': '', 'tenure': 'unknown',
'floor-level': 'NO DATA!', 'potential-energy-efficiency': '83', 'hot-water-energy-eff': 'Good',
'low-energy-lighting': '', 'walls-description': 'Average thermal transmittance 0.22 W/m-¦K',
'hotwater-description': 'From main system'},
{'low-energy-fixed-light-count': '', 'address': 'Flat 5, 197-199 North End Road,', 'uprn-source': '',
'floor-height': '2.75', 'heating-cost-potential': '716', 'unheated-corridor-length': '',
'hot-water-cost-potential': '262', 'construction-age-band': '2023', 'potential-energy-rating': 'C',
'mainheat-energy-eff': 'Good', 'windows-env-eff': 'Very Good', 'lighting-energy-eff': 'Very Good',
'environment-impact-potential': '77', 'glazed-type': '', 'heating-cost-current': '716', 'address3': '',
'mainheatcont-description': 'Programmer, room thermostat and TRVs', 'sheating-energy-eff': 'N/A',
'property-type': 'Flat', 'local-authority-label': 'Hammersmith and Fulham', 'fixed-lighting-outlets-count': '21',
'energy-tariff': 'standard tariff', 'mechanical-ventilation': '', 'hot-water-cost-current': '262', 'county': '',
'postcode': 'W14 9NL', 'solar-water-heating-flag': '', 'constituency': 'E14000726',
'co2-emissions-potential': '2.2', 'number-heated-rooms': '',
'floor-description': 'Average thermal transmittance 0.31 W/m-¦K', 'energy-consumption-potential': '109',
'local-authority': 'E09000013', 'built-form': 'Mid-Terrace', 'number-open-fireplaces': '0',
'windows-description': 'High performance glazing', 'glazed-area': '', 'inspection-date': '2023-04-29',
'mains-gas-flag': '', 'co2-emiss-curr-per-floor-area': '19', 'address1': 'Flat 5', 'heat-loss-corridor': '',
'flat-storey-count': '', 'constituency-label': 'Hammersmith', 'roof-energy-eff': 'Very Good',
'total-floor-area': '112.0', 'building-reference-number': '10004366541', 'environment-impact-current': '77',
'co2-emissions-current': '2.2', 'roof-description': 'Average thermal transmittance 0.14 W/m-¦K',
'floor-energy-eff': 'Average', 'number-habitable-rooms': '', 'address2': '197-199 North End Road,',
'hot-water-env-eff': 'Good', 'posttown': 'LONDON', 'mainheatc-energy-eff': 'Good', 'main-fuel': 'Gas: mains gas',
'lighting-env-eff': 'Very Good', 'windows-energy-eff': 'Very Good', 'floor-env-eff': 'Average',
'sheating-env-eff': 'N/A', 'lighting-description': 'Low energy lighting in all fixed outlets',
'roof-env-eff': 'Very Good', 'walls-energy-eff': 'Very Good', 'photo-supply': '', 'lighting-cost-potential': '167',
'mainheat-env-eff': 'Good', 'multi-glaze-proportion': '100', 'main-heating-controls': '',
'lodgement-datetime': '2023-04-29 19:00:05', 'flat-top-storey': 'Y', 'current-energy-rating': 'C',
'secondheat-description': 'None', 'walls-env-eff': 'Very Good', 'transaction-type': 'not sale or rental',
'uprn': '', 'current-energy-efficiency': '78', 'energy-consumption-current': '109',
'mainheat-description': 'Boiler and radiators, mains gas', 'lighting-cost-current': '167',
'lodgement-date': '2023-04-29', 'extension-count': '', 'mainheatc-env-eff': 'Good',
'lmk-key': '4fa22ecbdf199782db9090216eee5f04337864e0393ed6898aaccedac2dec0ed', 'wind-turbine-count': '0',
'tenure': 'Not defined - use in the case of a new dwelling for which the intended tenure in not known. It is no',
'floor-level': '3', 'potential-energy-efficiency': '78', 'hot-water-energy-eff': 'Good',
'low-energy-lighting': '100', 'walls-description': 'Average thermal transmittance 0.24 W/m-¦K',
'hotwater-description': 'From main system'},
{'low-energy-fixed-light-count': '', 'address': 'Flat 4, 14 Bloemfontein Road', 'uprn-source': 'Energy Assessor',
'floor-height': '2.65', 'heating-cost-potential': '618', 'unheated-corridor-length': '',
'hot-water-cost-potential': '335', 'construction-age-band': '2021', 'potential-energy-rating': 'C',
'mainheat-energy-eff': 'Very Poor', 'windows-env-eff': 'Very Good', 'lighting-energy-eff': 'Very Good',
'environment-impact-potential': '73', 'glazed-type': '', 'heating-cost-current': '618', 'address3': '',
'mainheatcont-description': 'Time and temperature zone control', 'sheating-energy-eff': 'N/A',
'property-type': 'Flat', 'local-authority-label': 'Hammersmith and Fulham', 'fixed-lighting-outlets-count': '10',
'energy-tariff': 'standard tariff', 'mechanical-ventilation': '', 'hot-water-cost-current': '335', 'county': '',
'postcode': 'W12 7BX', 'solar-water-heating-flag': '', 'constituency': 'E14000726',
'co2-emissions-potential': '1.4', 'number-heated-rooms': '',
'floor-description': 'Average thermal transmittance 0.19 W/m-¦K', 'energy-consumption-potential': '211',
'local-authority': 'E09000013', 'built-form': 'Mid-Terrace', 'number-open-fireplaces': '0',
'windows-description': 'High performance glazing', 'glazed-area': '', 'inspection-date': '2023-04-17',
'mains-gas-flag': '', 'co2-emiss-curr-per-floor-area': '36', 'address1': 'Flat 4', 'heat-loss-corridor': '',
'flat-storey-count': '', 'constituency-label': 'Hammersmith', 'roof-energy-eff': 'Good',
'total-floor-area': '40.0', 'building-reference-number': '10004364259', 'environment-impact-current': '73',
'co2-emissions-current': '1.4', 'roof-description': 'Average thermal transmittance 0.16 W/m-¦K',
'floor-energy-eff': 'Very Good', 'number-habitable-rooms': '', 'address2': '14 Bloemfontein Road',
'hot-water-env-eff': 'Poor', 'posttown': 'LONDON', 'mainheatc-energy-eff': 'Very Good',
'main-fuel': 'Electricity: electricity, unspecified tariff', 'lighting-env-eff': 'Very Good',
'windows-energy-eff': 'Very Good', 'floor-env-eff': 'Very Good', 'sheating-env-eff': 'N/A',
'lighting-description': 'Low energy lighting in all fixed outlets', 'roof-env-eff': 'Good',
'walls-energy-eff': 'Very Good', 'photo-supply': '', 'lighting-cost-potential': '72', 'mainheat-env-eff': 'Poor',
'multi-glaze-proportion': '100', 'main-heating-controls': '', 'lodgement-datetime': '2023-04-17 14:07:33',
'flat-top-storey': 'Y', 'current-energy-rating': 'C', 'secondheat-description': 'None',
'walls-env-eff': 'Very Good', 'transaction-type': 'new dwelling', 'uprn': '34172210',
'current-energy-efficiency': '70', 'energy-consumption-current': '211',
'mainheat-description': 'Boiler and radiators, electric', 'lighting-cost-current': '72',
'lodgement-date': '2023-04-17', 'extension-count': '', 'mainheatc-env-eff': 'Very Good',
'lmk-key': '2b4a0154ae9dc85a8654e23a76fc04bb814ed038dde521a27db6e1f29e260b06', 'wind-turbine-count': '0',
'tenure': 'Owner-occupied', 'floor-level': '3', 'potential-energy-efficiency': '70',
'hot-water-energy-eff': 'Very Poor', 'low-energy-lighting': '100',
'walls-description': 'Average thermal transmittance 0.29 W/m-¦K',
'hotwater-description': 'Electric instantaneous at point of use'},
{'low-energy-fixed-light-count': '', 'address': 'Flat 1, 14 Bloemfontein Road', 'uprn-source': 'Energy Assessor',
'floor-height': '2.1', 'heating-cost-potential': '644', 'unheated-corridor-length': '',
'hot-water-cost-potential': '214', 'construction-age-band': '2021', 'potential-energy-rating': 'C',
'mainheat-energy-eff': 'Good', 'windows-env-eff': 'Very Good', 'lighting-energy-eff': 'Very Good',
'environment-impact-potential': '77', 'glazed-type': '', 'heating-cost-current': '644', 'address3': '',
'mainheatcont-description': 'Programmer, room thermostat and TRVs', 'sheating-energy-eff': 'N/A',
'property-type': 'Flat', 'local-authority-label': 'Hammersmith and Fulham', 'fixed-lighting-outlets-count': '12',
'energy-tariff': 'standard tariff', 'mechanical-ventilation': '', 'hot-water-cost-current': '214', 'county': '',
'postcode': 'W12 7BX', 'solar-water-heating-flag': '', 'constituency': 'E14000726',
'co2-emissions-potential': '1.8', 'number-heated-rooms': '',
'floor-description': 'Average thermal transmittance 0.19 W/m-¦K', 'energy-consumption-potential': '128',
'local-authority': 'E09000013', 'built-form': 'Mid-Terrace', 'number-open-fireplaces': '0',
'windows-description': 'High performance glazing', 'glazed-area': '', 'inspection-date': '2023-04-17',
'mains-gas-flag': '', 'co2-emiss-curr-per-floor-area': '22', 'address1': 'Flat 1', 'heat-loss-corridor': '',
'flat-storey-count': '', 'constituency-label': 'Hammersmith', 'roof-energy-eff': 'Good',
'total-floor-area': '82.0', 'building-reference-number': '10004350634', 'environment-impact-current': '77',
'co2-emissions-current': '1.8', 'roof-description': 'Average thermal transmittance 0.17 W/m-¦K',
'floor-energy-eff': 'Very Good', 'number-habitable-rooms': '', 'address2': '14 Bloemfontein Road',
'hot-water-env-eff': 'Good', 'posttown': 'LONDON', 'mainheatc-energy-eff': 'Good', 'main-fuel': 'Gas: mains gas',
'lighting-env-eff': 'Very Good', 'windows-energy-eff': 'Very Good', 'floor-env-eff': 'Very Good',
'sheating-env-eff': 'N/A', 'lighting-description': 'Low energy lighting in all fixed outlets',
'roof-env-eff': 'Good', 'walls-energy-eff': 'Very Good', 'photo-supply': '', 'lighting-cost-potential': '129',
'mainheat-env-eff': 'Good', 'multi-glaze-proportion': '100', 'main-heating-controls': '',
'lodgement-datetime': '2023-04-17 14:07:29', 'flat-top-storey': 'N', 'current-energy-rating': 'C',
'secondheat-description': 'None', 'walls-env-eff': 'Very Good', 'transaction-type': 'new dwelling',
'uprn': '34172207', 'current-energy-efficiency': '78', 'energy-consumption-current': '128',
'mainheat-description': 'Boiler and radiators, mains gas', 'lighting-cost-current': '129',
'lodgement-date': '2023-04-17', 'extension-count': '', 'mainheatc-env-eff': 'Good',
'lmk-key': '006f849816dd0a4be832d2f068d858b6c9854c3814297d974c2b57f983191614', 'wind-turbine-count': '0',
'tenure': 'Owner-occupied', 'floor-level': '1', 'potential-energy-efficiency': '78',
'hot-water-energy-eff': 'Good', 'low-energy-lighting': '100',
'walls-description': 'Average thermal transmittance 0.28 W/m-¦K', 'hotwater-description': 'From main system'},
{'low-energy-fixed-light-count': '', 'address': 'Flat 2, 14 Bloemfontein Road', 'uprn-source': 'Energy Assessor',
'floor-height': '2.7', 'heating-cost-potential': '720', 'unheated-corridor-length': '',
'hot-water-cost-potential': '374', 'construction-age-band': '2021', 'potential-energy-rating': 'C',
'mainheat-energy-eff': 'Very Poor', 'windows-env-eff': 'Very Good', 'lighting-energy-eff': 'Very Good',
'environment-impact-potential': '72', 'glazed-type': '', 'heating-cost-current': '720', 'address3': '',
'mainheatcont-description': 'Time and temperature zone control', 'sheating-energy-eff': 'N/A',
'property-type': 'Flat', 'local-authority-label': 'Hammersmith and Fulham', 'fixed-lighting-outlets-count': '10',
'energy-tariff': 'standard tariff', 'mechanical-ventilation': '', 'hot-water-cost-current': '374', 'county': '',
'postcode': 'W12 7BX', 'solar-water-heating-flag': '', 'constituency': 'E14000726',
'co2-emissions-potential': '1.7', 'number-heated-rooms': '',
'floor-description': 'Average thermal transmittance 0.19 W/m-¦K', 'energy-consumption-potential': '189',
'local-authority': 'E09000013', 'built-form': 'Mid-Terrace', 'number-open-fireplaces': '0',
'windows-description': 'High performance glazing', 'glazed-area': '', 'inspection-date': '2023-04-17',
'mains-gas-flag': '', 'co2-emiss-curr-per-floor-area': '32', 'address1': 'Flat 2', 'heat-loss-corridor': '',
'flat-storey-count': '', 'constituency-label': 'Hammersmith', 'roof-energy-eff': 'Very Good',
'total-floor-area': '52.0', 'building-reference-number': '10004357130', 'environment-impact-current': '72',
'co2-emissions-current': '1.7', 'roof-description': 'Average thermal transmittance 0.11 W/m-¦K',
'floor-energy-eff': 'Very Good', 'number-habitable-rooms': '', 'address2': '14 Bloemfontein Road',
'hot-water-env-eff': 'Poor', 'posttown': 'LONDON', 'mainheatc-energy-eff': 'Very Good',
'main-fuel': 'Electricity: electricity, unspecified tariff', 'lighting-env-eff': 'Very Good',
'windows-energy-eff': 'Very Good', 'floor-env-eff': 'Very Good', 'sheating-env-eff': 'N/A',
'lighting-description': 'Low energy lighting in all fixed outlets', 'roof-env-eff': 'Very Good',
'walls-energy-eff': 'Good', 'photo-supply': '', 'lighting-cost-potential': '89', 'mainheat-env-eff': 'Poor',
'multi-glaze-proportion': '100', 'main-heating-controls': '', 'lodgement-datetime': '2023-04-17 14:07:31',
'flat-top-storey': 'N', 'current-energy-rating': 'C', 'secondheat-description': 'None', 'walls-env-eff': 'Good',
'transaction-type': 'new dwelling', 'uprn': '34172208', 'current-energy-efficiency': '69',
'energy-consumption-current': '189', 'mainheat-description': 'Boiler and radiators, electric',
'lighting-cost-current': '89', 'lodgement-date': '2023-04-17', 'extension-count': '',
'mainheatc-env-eff': 'Very Good', 'lmk-key': '617063b16faf77c38c0d8784af28ec4f60cc2ab6bf9857b29797172b557ba5c9',
'wind-turbine-count': '0', 'tenure': 'Owner-occupied', 'floor-level': '2', 'potential-energy-efficiency': '69',
'hot-water-energy-eff': 'Very Poor', 'low-energy-lighting': '100',
'walls-description': 'Average thermal transmittance 0.30 W/m-¦K',
'hotwater-description': 'Electric instantaneous at point of use'},
{'low-energy-fixed-light-count': '', 'address': 'Flat 2, 41 Bloemfontein Road', 'uprn-source': 'Energy Assessor',
'floor-height': '2.6', 'heating-cost-potential': '779', 'unheated-corridor-length': '',
'hot-water-cost-potential': '403', 'construction-age-band': '2021', 'potential-energy-rating': 'C',
'mainheat-energy-eff': 'Very Poor', 'windows-env-eff': 'Very Good', 'lighting-energy-eff': 'Very Good',
'environment-impact-potential': '72', 'glazed-type': '', 'heating-cost-current': '779', 'address3': '',
'mainheatcont-description': 'Time and temperature zone control', 'sheating-energy-eff': 'N/A',
'property-type': 'Flat', 'local-authority-label': 'Hammersmith and Fulham', 'fixed-lighting-outlets-count': '10',
'energy-tariff': 'standard tariff', 'mechanical-ventilation': '', 'hot-water-cost-current': '403', 'county': '',
'postcode': 'W12 7BH', 'solar-water-heating-flag': '', 'constituency': 'E14000726',
'co2-emissions-potential': '1.8', 'number-heated-rooms': '',
'floor-description': 'Average thermal transmittance 0.19 W/m-¦K', 'energy-consumption-potential': '177',
'local-authority': 'E09000013', 'built-form': 'Mid-Terrace', 'number-open-fireplaces': '0',
'windows-description': 'High performance glazing', 'glazed-area': '', 'inspection-date': '2023-04-17',
'mains-gas-flag': '', 'co2-emiss-curr-per-floor-area': '30', 'address1': 'Flat 2', 'heat-loss-corridor': '',
'flat-storey-count': '', 'constituency-label': 'Hammersmith', 'roof-energy-eff': 'Very Good',
'total-floor-area': '61.0', 'building-reference-number': '10004357458', 'environment-impact-current': '72',
'co2-emissions-current': '1.8', 'roof-description': 'Average thermal transmittance 0.14 W/m-¦K',
'floor-energy-eff': 'Very Good', 'number-habitable-rooms': '', 'address2': '41 Bloemfontein Road',
'hot-water-env-eff': 'Poor', 'posttown': 'LONDON', 'mainheatc-energy-eff': 'Very Good',
'main-fuel': 'Electricity: electricity, unspecified tariff', 'lighting-env-eff': 'Very Good',
'windows-energy-eff': 'Very Good', 'floor-env-eff': 'Very Good', 'sheating-env-eff': 'N/A',
'lighting-description': 'Low energy lighting in all fixed outlets', 'roof-env-eff': 'Very Good',
'walls-energy-eff': 'Good', 'photo-supply': '', 'lighting-cost-potential': '106', 'mainheat-env-eff': 'Poor',
'multi-glaze-proportion': '100', 'main-heating-controls': '', 'lodgement-datetime': '2023-04-17 14:15:14',
'flat-top-storey': 'N', 'current-energy-rating': 'C', 'secondheat-description': 'None', 'walls-env-eff': 'Good',
'transaction-type': 'new dwelling', 'uprn': '34172205', 'current-energy-efficiency': '69',
'energy-consumption-current': '177', 'mainheat-description': 'Boiler and radiators, electric',
'lighting-cost-current': '106', 'lodgement-date': '2023-04-17', 'extension-count': '',
'mainheatc-env-eff': 'Very Good', 'lmk-key': '6959dda1a3323ab73487baf8c7c071d5ed4ae48e405905c71779904c454e6513',
'wind-turbine-count': '0', 'tenure': 'Owner-occupied', 'floor-level': '2', 'potential-energy-efficiency': '69',
'hot-water-energy-eff': 'Very Poor', 'low-energy-lighting': '100',
'walls-description': 'Average thermal transmittance 0.30 W/m-¦K',
'hotwater-description': 'Electric instantaneous at point of use'},
{'low-energy-fixed-light-count': '', 'address': 'Flat 1, 41 Bloemfontein Road', 'uprn-source': 'Energy Assessor',
'floor-height': '2.15', 'heating-cost-potential': '674', 'unheated-corridor-length': '',
'hot-water-cost-potential': '225', 'construction-age-band': '2021', 'potential-energy-rating': 'C',
'mainheat-energy-eff': 'Good', 'windows-env-eff': 'Very Good', 'lighting-energy-eff': 'Very Good',
'environment-impact-potential': '79', 'glazed-type': '', 'heating-cost-current': '674', 'address3': '',
'mainheatcont-description': 'Time and temperature zone control', 'sheating-energy-eff': 'N/A',
'property-type': 'Flat', 'local-authority-label': 'Hammersmith and Fulham', 'fixed-lighting-outlets-count': '12',
'energy-tariff': 'standard tariff', 'mechanical-ventilation': '', 'hot-water-cost-current': '225', 'county': '',
'postcode': 'W12 7BH', 'solar-water-heating-flag': '', 'constituency': 'E14000726',
'co2-emissions-potential': '2.0', 'number-heated-rooms': '',
'floor-description': 'Average thermal transmittance 0.19 W/m-¦K', 'energy-consumption-potential': '108',
'local-authority': 'E09000013', 'built-form': 'Mid-Terrace', 'number-open-fireplaces': '0',
'windows-description': 'High performance glazing', 'glazed-area': '', 'inspection-date': '2023-04-17',
'mains-gas-flag': '', 'co2-emiss-curr-per-floor-area': '19', 'address1': 'Flat 1', 'heat-loss-corridor': '',
'flat-storey-count': '', 'constituency-label': 'Hammersmith', 'roof-energy-eff': 'Good',
'total-floor-area': '103.0', 'building-reference-number': '10004350985', 'environment-impact-current': '79',
'co2-emissions-current': '2.0', 'roof-description': 'Average thermal transmittance 0.16 W/m-¦K',
'floor-energy-eff': 'Very Good', 'number-habitable-rooms': '', 'address2': '41 Bloemfontein Road',
'hot-water-env-eff': 'Good', 'posttown': 'LONDON', 'mainheatc-energy-eff': 'Very Good',
'main-fuel': 'Gas: mains gas', 'lighting-env-eff': 'Very Good', 'windows-energy-eff': 'Very Good',
'floor-env-eff': 'Very Good', 'sheating-env-eff': 'N/A',
'lighting-description': 'Low energy lighting in all fixed outlets', 'roof-env-eff': 'Good',
'walls-energy-eff': 'Good', 'photo-supply': '', 'lighting-cost-potential': '152', 'mainheat-env-eff': 'Good',
'multi-glaze-proportion': '100', 'main-heating-controls': '', 'lodgement-datetime': '2023-04-17 14:15:13',
'flat-top-storey': 'N', 'current-energy-rating': 'C', 'secondheat-description': 'None', 'walls-env-eff': 'Good',
'transaction-type': 'new dwelling', 'uprn': '34172204', 'current-energy-efficiency': '80',
'energy-consumption-current': '108', 'mainheat-description': 'Boiler and radiators, mains gas',
'lighting-cost-current': '152', 'lodgement-date': '2023-04-17', 'extension-count': '',
'mainheatc-env-eff': 'Very Good', 'lmk-key': '90cc959ccbac4f38bbbe68ffd2a6d8ca75190e4670a27fdff6763ece808be2f1',
'wind-turbine-count': '0', 'tenure': 'Owner-occupied', 'floor-level': '1', 'potential-energy-efficiency': '80',
'hot-water-energy-eff': 'Good', 'low-energy-lighting': '100',
'walls-description': 'Average thermal transmittance 0.36 W/m-¦K', 'hotwater-description': 'From main system'},
{'low-energy-fixed-light-count': '', 'address': 'Flat 3, 41 Bloemfontein Road', 'uprn-source': 'Energy Assessor',
'floor-height': '2.65', 'heating-cost-potential': '656', 'unheated-corridor-length': '',
'hot-water-cost-potential': '369', 'construction-age-band': '2021', 'potential-energy-rating': 'C',
'mainheat-energy-eff': 'Very Poor', 'windows-env-eff': 'Very Good', 'lighting-energy-eff': 'Very Good',
'environment-impact-potential': '73', 'glazed-type': '', 'heating-cost-current': '656', 'address3': '',
'mainheatcont-description': 'Time and temperature zone control', 'sheating-energy-eff': 'N/A',
'property-type': 'Flat', 'local-authority-label': 'Hammersmith and Fulham', 'fixed-lighting-outlets-count': '8',
'energy-tariff': 'standard tariff', 'mechanical-ventilation': '', 'hot-water-cost-current': '369', 'county': '',
'postcode': 'W12 7BH', 'solar-water-heating-flag': '', 'constituency': 'E14000726',
'co2-emissions-potential': '1.6', 'number-heated-rooms': '',
'floor-description': 'Average thermal transmittance 0.19 W/m-¦K', 'energy-consumption-potential': '182',
'local-authority': 'E09000013', 'built-form': 'Mid-Terrace', 'number-open-fireplaces': '0',
'windows-description': 'High performance glazing', 'glazed-area': '', 'inspection-date': '2023-04-17',
'mains-gas-flag': '', 'co2-emiss-curr-per-floor-area': '31', 'address1': 'Flat 3', 'heat-loss-corridor': '',
'flat-storey-count': '', 'constituency-label': 'Hammersmith', 'roof-energy-eff': 'Good',
'total-floor-area': '51.0', 'building-reference-number': '10004361653', 'environment-impact-current': '73',
'co2-emissions-current': '1.6', 'roof-description': 'Average thermal transmittance 0.16 W/m-¦K',
'floor-energy-eff': 'Very Good', 'number-habitable-rooms': '', 'address2': '41 Bloemfontein Road',
'hot-water-env-eff': 'Poor', 'posttown': 'LONDON', 'mainheatc-energy-eff': 'Very Good',
'main-fuel': 'Electricity: electricity, unspecified tariff', 'lighting-env-eff': 'Very Good',
'windows-energy-eff': 'Very Good', 'floor-env-eff': 'Very Good', 'sheating-env-eff': 'N/A',
'lighting-description': 'Low energy lighting in all fixed outlets', 'roof-env-eff': 'Good',
'walls-energy-eff': 'Very Good', 'photo-supply': '', 'lighting-cost-potential': '88', 'mainheat-env-eff': 'Poor',
'multi-glaze-proportion': '100', 'main-heating-controls': '', 'lodgement-datetime': '2023-04-17 14:15:15',
'flat-top-storey': 'Y', 'current-energy-rating': 'C', 'secondheat-description': 'None',
'walls-env-eff': 'Very Good', 'transaction-type': 'new dwelling', 'uprn': '34172206',
'current-energy-efficiency': '71', 'energy-consumption-current': '182',
'mainheat-description': 'Boiler and radiators, electric', 'lighting-cost-current': '88',
'lodgement-date': '2023-04-17', 'extension-count': '', 'mainheatc-env-eff': 'Very Good',
'lmk-key': '98aefd25e8693d461c54f6a3a66246f2a20a03d82bf2575700f5fec876046fb7', 'wind-turbine-count': '0',
'tenure': 'Owner-occupied', 'floor-level': '3', 'potential-energy-efficiency': '71',
'hot-water-energy-eff': 'Very Poor', 'low-energy-lighting': '100',
'walls-description': 'Average thermal transmittance 0.22 W/m-¦K',
'hotwater-description': 'Electric instantaneous at point of use'},
{'low-energy-fixed-light-count': '', 'address': 'Flat 3, 14 Bloemfontein Road', 'uprn-source': 'Energy Assessor',
'floor-height': '2.75', 'heating-cost-potential': '433', 'unheated-corridor-length': '',
'hot-water-cost-potential': '296', 'construction-age-band': '2021', 'potential-energy-rating': 'C',
'mainheat-energy-eff': 'Very Poor', 'windows-env-eff': 'Very Good', 'lighting-energy-eff': 'Very Good',
'environment-impact-potential': '75', 'glazed-type': '', 'heating-cost-current': '433', 'address3': '',
'mainheatcont-description': 'Time and temperature zone control', 'sheating-energy-eff': 'N/A',
'property-type': 'Flat', 'local-authority-label': 'Hammersmith and Fulham', 'fixed-lighting-outlets-count': '6',
'energy-tariff': 'standard tariff', 'mechanical-ventilation': '', 'hot-water-cost-current': '296', 'county': '',
'postcode': 'W12 7BX', 'solar-water-heating-flag': '', 'constituency': 'E14000726',
'co2-emissions-potential': '1.1', 'number-heated-rooms': '',
'floor-description': 'Average thermal transmittance 0.19 W/m-¦K', 'energy-consumption-potential': '260',
'local-authority': 'E09000013', 'built-form': 'Mid-Terrace', 'number-open-fireplaces': '0',
'windows-description': 'High performance glazing', 'glazed-area': '', 'inspection-date': '2023-04-17',
'mains-gas-flag': '', 'co2-emiss-curr-per-floor-area': '44', 'address1': 'Flat 3', 'heat-loss-corridor': '',
'flat-storey-count': '', 'constituency-label': 'Hammersmith', 'roof-energy-eff': 'Good',
'total-floor-area': '25.0', 'building-reference-number': '10004361390', 'environment-impact-current': '75',
'co2-emissions-current': '1.1', 'roof-description': 'Average thermal transmittance 0.15 W/m-¦K',
'floor-energy-eff': 'Very Good', 'number-habitable-rooms': '', 'address2': '14 Bloemfontein Road',
'hot-water-env-eff': 'Poor', 'posttown': 'LONDON', 'mainheatc-energy-eff': 'Very Good',
'main-fuel': 'Electricity: electricity, unspecified tariff', 'lighting-env-eff': 'Very Good',
'windows-energy-eff': 'Very Good', 'floor-env-eff': 'Very Good', 'sheating-env-eff': 'N/A',
'lighting-description': 'Low energy lighting in all fixed outlets', 'roof-env-eff': 'Good',
'walls-energy-eff': 'Good', 'photo-supply': '', 'lighting-cost-potential': '50', 'mainheat-env-eff': 'Poor',
'multi-glaze-proportion': '100', 'main-heating-controls': '', 'lodgement-datetime': '2023-04-17 14:07:32',
'flat-top-storey': 'Y', 'current-energy-rating': 'C', 'secondheat-description': 'None', 'walls-env-eff': 'Good',
'transaction-type': 'new dwelling', 'uprn': '34172209', 'current-energy-efficiency': '72',
'energy-consumption-current': '260', 'mainheat-description': 'Boiler and radiators, electric',
'lighting-cost-current': '50', 'lodgement-date': '2023-04-17', 'extension-count': '',
'mainheatc-env-eff': 'Very Good', 'lmk-key': 'a7d3f17752b602b00b31000c506d814d5bf81704f8f2176555580fe3b6568bdf',
'wind-turbine-count': '0', 'tenure': 'Owner-occupied', 'floor-level': '3', 'potential-energy-efficiency': '72',
'hot-water-energy-eff': 'Very Poor', 'low-energy-lighting': '100',
'walls-description': 'Average thermal transmittance 0.30 W/m-¦K',
'hotwater-description': 'Electric instantaneous at point of use'},
{'low-energy-fixed-light-count': '', 'address': '143, Parkside Apartments, Cascade Way', 'uprn-source': '',
'floor-height': '2.5', 'heating-cost-potential': '1199', 'unheated-corridor-length': '',
'hot-water-cost-potential': '193', 'construction-age-band': '2020', 'potential-energy-rating': 'B',
'mainheat-energy-eff': 'Very Good', 'windows-env-eff': 'Very Good', 'lighting-energy-eff': 'Very Good',
'environment-impact-potential': '88', 'glazed-type': '', 'heating-cost-current': '1199', 'address3': 'Cascade Way',
'mainheatcont-description': 'Charging system linked to use of community heating, programmer and at least two '
'room stats',
'sheating-energy-eff': 'N/A', 'property-type': 'Flat', 'local-authority-label': 'Hammersmith and Fulham',
'fixed-lighting-outlets-count': '50', 'energy-tariff': 'standard tariff', 'mechanical-ventilation': '',
'hot-water-cost-current': '193', 'county': '', 'postcode': 'W12 7RE', 'solar-water-heating-flag': '',
'constituency': 'E14000726', 'co2-emissions-potential': '1.9', 'number-heated-rooms': '',
'floor-description': 'Average thermal transmittance 0.15 W/m-¦K', 'energy-consumption-potential': '52',
'local-authority': 'E09000013', 'built-form': 'Semi-Detached', 'number-open-fireplaces': '0',
'windows-description': 'High performance glazing', 'glazed-area': '', 'inspection-date': '2023-03-31',
'mains-gas-flag': '', 'co2-emiss-curr-per-floor-area': '10', 'address1': '143', 'heat-loss-corridor': '',
'flat-storey-count': '', 'constituency-label': 'Hammersmith', 'roof-energy-eff': 'Very Good',
'total-floor-area': '185.0', 'building-reference-number': '10004107647', 'environment-impact-current': '88',
'co2-emissions-current': '1.9', 'roof-description': 'Average thermal transmittance 0.10 W/m-¦K',
'floor-energy-eff': 'Very Good', 'number-habitable-rooms': '', 'address2': 'Parkside Apartments',
'hot-water-env-eff': 'Very Good', 'posttown': 'London', 'mainheatc-energy-eff': 'Good', 'main-fuel': '',
'lighting-env-eff': 'Very Good', 'windows-energy-eff': 'Very Good', 'floor-env-eff': 'Very Good',
'sheating-env-eff': 'N/A', 'lighting-description': 'Low energy lighting in all fixed outlets',
'roof-env-eff': 'Very Good', 'walls-energy-eff': 'Average', 'photo-supply': '', 'lighting-cost-potential': '207',
'mainheat-env-eff': 'Very Good', 'multi-glaze-proportion': '100', 'main-heating-controls': '',
'lodgement-datetime': '2023-03-31 05:10:35', 'flat-top-storey': 'Y', 'current-energy-rating': 'B',
'secondheat-description': 'None', 'walls-env-eff': 'Average', 'transaction-type': 'new dwelling', 'uprn': '',
'current-energy-efficiency': '82', 'energy-consumption-current': '52', 'mainheat-description': 'Community scheme',
'lighting-cost-current': '207', 'lodgement-date': '2023-03-31', 'extension-count': '', 'mainheatc-env-eff': 'Good',
'lmk-key': '76f71689c3af20210abc756f76ed244254ec5282ceb6a1b2bec48707ebc3acdf', 'wind-turbine-count': '0',
'tenure': 'Not defined - use in the case of a new dwelling for which the intended tenure in not known. It is no',
'floor-level': '3', 'potential-energy-efficiency': '82', 'hot-water-energy-eff': 'Very Good',
'low-energy-lighting': '100', 'walls-description': 'Average thermal transmittance 0.92 W/m-¦K',
'hotwater-description': 'Community scheme'},
{'low-energy-fixed-light-count': '', 'address': '1 Southerton Mews', 'uprn-source': '', 'floor-height': '2.45',
'heating-cost-potential': '226', 'unheated-corridor-length': '', 'hot-water-cost-potential': '292',
'construction-age-band': '2022', 'potential-energy-rating': 'B', 'mainheat-energy-eff': 'Average',
'windows-env-eff': 'Very Good', 'lighting-energy-eff': 'Very Good', 'environment-impact-potential': '84',
'glazed-type': '', 'heating-cost-current': '226', 'address3': '',
'mainheatcont-description': 'Programmer and room thermostat', 'sheating-energy-eff': 'N/A',
'property-type': 'Flat', 'local-authority-label': 'Hammersmith and Fulham', 'fixed-lighting-outlets-count': '10',
'energy-tariff': 'standard tariff', 'mechanical-ventilation': '', 'hot-water-cost-current': '292', 'county': '',
'postcode': 'W6 0PR', 'solar-water-heating-flag': '', 'constituency': 'E14000726',
'co2-emissions-potential': '1.4', 'number-heated-rooms': '',
'floor-description': 'Average thermal transmittance 0.13 W/m-¦K', 'energy-consumption-potential': '101',
'local-authority': 'E09000013', 'built-form': 'End-Terrace', 'number-open-fireplaces': '0',
'windows-description': 'High performance glazing', 'glazed-area': '', 'inspection-date': '2023-02-03',
'mains-gas-flag': '', 'co2-emiss-curr-per-floor-area': '17', 'address1': '1 Southerton Mews',
'heat-loss-corridor': '', 'flat-storey-count': '', 'constituency-label': 'Hammersmith',
'roof-energy-eff': 'Very Good', 'total-floor-area': '81.0', 'building-reference-number': '10003943973',
'environment-impact-current': '84', 'co2-emissions-current': '1.4',
'roof-description': 'Average thermal transmittance 0.12 W/m-¦K', 'floor-energy-eff': 'Very Good',
'number-habitable-rooms': '', 'address2': '', 'hot-water-env-eff': 'Average', 'posttown': 'London',
'mainheatc-energy-eff': 'Average', 'main-fuel': 'Electricity: electricity, unspecified tariff',
'lighting-env-eff': 'Very Good', 'windows-energy-eff': 'Very Good', 'floor-env-eff': 'Very Good',
'sheating-env-eff': 'N/A', 'lighting-description': 'Low energy lighting in all fixed outlets',
'roof-env-eff': 'Very Good', 'walls-energy-eff': 'Very Good', 'photo-supply': '', 'lighting-cost-potential': '84',
'mainheat-env-eff': 'Good', 'multi-glaze-proportion': '100', 'main-heating-controls': '',
'lodgement-datetime': '2023-02-03 14:12:27', 'flat-top-storey': 'N', 'current-energy-rating': 'B',
'secondheat-description': 'None', 'walls-env-eff': 'Very Good', 'transaction-type': 'new dwelling', 'uprn': '',
'current-energy-efficiency': '82', 'energy-consumption-current': '101',
'mainheat-description': 'Air source heat pump, radiators, electric', 'lighting-cost-current': '84',
'lodgement-date': '2023-02-03', 'extension-count': '', 'mainheatc-env-eff': 'Average',
'lmk-key': '0332b4fed03e3e6d20c869714c5c9991f1438ef62594cee4b092d55333abd494', 'wind-turbine-count': '0',
'tenure': 'Not defined - use in the case of a new dwelling for which the intended tenure in not known. It is no',
'floor-level': '1', 'potential-energy-efficiency': '82', 'hot-water-energy-eff': 'Poor',
'low-energy-lighting': '100', 'walls-description': 'Average thermal transmittance 0.16 W/m-¦K',
'hotwater-description': 'From main system'},
{'low-energy-fixed-light-count': '', 'address': '4 Southerton Mews', 'uprn-source': '', 'floor-height': '2.45',
'heating-cost-potential': '246', 'unheated-corridor-length': '', 'hot-water-cost-potential': '290',
'construction-age-band': '2022', 'potential-energy-rating': 'B', 'mainheat-energy-eff': 'Average',
'windows-env-eff': 'Very Good', 'lighting-energy-eff': 'Very Good', 'environment-impact-potential': '83',
'glazed-type': '', 'heating-cost-current': '246', 'address3': '',
'mainheatcont-description': 'Programmer and room thermostat', 'sheating-energy-eff': 'N/A',
'property-type': 'Flat', 'local-authority-label': 'Hammersmith and Fulham', 'fixed-lighting-outlets-count': '10',
'energy-tariff': 'standard tariff', 'mechanical-ventilation': '', 'hot-water-cost-current': '290', 'county': '',
'postcode': 'W6 0PR', 'solar-water-heating-flag': '', 'constituency': 'E14000726',
'co2-emissions-potential': '1.4', 'number-heated-rooms': '',
'floor-description': 'Average thermal transmittance 0.13 W/m-¦K', 'energy-consumption-potential': '105',
'local-authority': 'E09000013', 'built-form': 'End-Terrace', 'number-open-fireplaces': '0',
'windows-description': 'High performance glazing', 'glazed-area': '', 'inspection-date': '2023-02-03',
'mains-gas-flag': '', 'co2-emiss-curr-per-floor-area': '18', 'address1': '4 Southerton Mews',
'heat-loss-corridor': '', 'flat-storey-count': '', 'constituency-label': 'Hammersmith',
'roof-energy-eff': 'Very Good', 'total-floor-area': '80.0', 'building-reference-number': '10004009725',
'environment-impact-current': '83', 'co2-emissions-current': '1.4',
'roof-description': 'Average thermal transmittance 0.11 W/m-¦K', 'floor-energy-eff': 'Very Good',
'number-habitable-rooms': '', 'address2': '', 'hot-water-env-eff': 'Average', 'posttown': 'London',
'mainheatc-energy-eff': 'Average', 'main-fuel': 'Electricity: electricity, unspecified tariff',
'lighting-env-eff': 'Very Good', 'windows-energy-eff': 'Very Good', 'floor-env-eff': 'Very Good',
'sheating-env-eff': 'N/A', 'lighting-description': 'Low energy lighting in all fixed outlets',
'roof-env-eff': 'Very Good', 'walls-energy-eff': 'Very Good', 'photo-supply': '', 'lighting-cost-potential': '81',
'mainheat-env-eff': 'Good', 'multi-glaze-proportion': '100', 'main-heating-controls': '',
'lodgement-datetime': '2023-02-03 14:14:19', 'flat-top-storey': 'N', 'current-energy-rating': 'B',
'secondheat-description': 'None', 'walls-env-eff': 'Very Good', 'transaction-type': 'new dwelling', 'uprn': '',
'current-energy-efficiency': '81', 'energy-consumption-current': '105',
'mainheat-description': 'Air source heat pump, radiators, electric', 'lighting-cost-current': '81',
'lodgement-date': '2023-02-03', 'extension-count': '', 'mainheatc-env-eff': 'Average',
'lmk-key': 'e01a48dc015119690eb2aca4b469b77910e1514cdcb098ac6bf97649abe9d062', 'wind-turbine-count': '0',
'tenure': 'Not defined - use in the case of a new dwelling for which the intended tenure in not known. It is no',
'floor-level': '1', 'potential-energy-efficiency': '81', 'hot-water-energy-eff': 'Poor',
'low-energy-lighting': '100', 'walls-description': 'Average thermal transmittance 0.16 W/m-¦K',
'hotwater-description': 'From main system'},
{'low-energy-fixed-light-count': '', 'address': 'Flat 1, 209A Fulham Palace Road', 'uprn-source': '',
'floor-height': '2.95', 'heating-cost-potential': '214', 'unheated-corridor-length': '',
'hot-water-cost-potential': '66', 'construction-age-band': '2022', 'potential-energy-rating': 'C',
'mainheat-energy-eff': 'Good', 'windows-env-eff': 'Very Good', 'lighting-energy-eff': 'Very Good',
'environment-impact-potential': '79', 'glazed-type': '', 'heating-cost-current': '214', 'address3': '',
'mainheatcont-description': 'Time and temperature zone control', 'sheating-energy-eff': 'N/A',
'property-type': 'Flat', 'local-authority-label': 'Hammersmith and Fulham', 'fixed-lighting-outlets-count': '1',
'energy-tariff': 'standard tariff', 'mechanical-ventilation': '', 'hot-water-cost-current': '66', 'county': '',
'postcode': 'W6 8QX', 'solar-water-heating-flag': '', 'constituency': 'E14000726',
'co2-emissions-potential': '1.2', 'number-heated-rooms': '',
'floor-description': 'Average thermal transmittance 0.12 W/m-¦K', 'energy-consumption-potential': '145',
'local-authority': 'E09000013', 'built-form': 'Detached', 'number-open-fireplaces': '0',
'windows-description': 'High performance glazing', 'glazed-area': '', 'inspection-date': '2022-07-06',
'mains-gas-flag': '', 'co2-emiss-curr-per-floor-area': '25', 'address1': 'Flat 1 ', 'heat-loss-corridor': '',
'flat-storey-count': '', 'constituency-label': 'Hammersmith', 'roof-energy-eff': 'Good',
'total-floor-area': '46.0', 'building-reference-number': '10003297683', 'environment-impact-current': '79',
'co2-emissions-current': '1.2', 'roof-description': 'Average thermal transmittance 0.16 W/m-¦K',
'floor-energy-eff': 'Very Good', 'number-habitable-rooms': '', 'address2': '209A Fulham Palace Road',
'hot-water-env-eff': 'Good', 'posttown': 'LONDON', 'mainheatc-energy-eff': 'Very Good',
'main-fuel': 'Gas: mains gas', 'lighting-env-eff': 'Very Good', 'windows-energy-eff': 'Very Good',
'floor-env-eff': 'Very Good', 'sheating-env-eff': 'N/A',
'lighting-description': 'Low energy lighting in all fixed outlets', 'roof-env-eff': 'Good',
'walls-energy-eff': 'Very Good', 'photo-supply': '', 'lighting-cost-potential': '42', 'mainheat-env-eff': 'Good',
'multi-glaze-proportion': '100', 'main-heating-controls': '', 'lodgement-datetime': '2022-07-06 08:39:46',
'flat-top-storey': 'N', 'current-energy-rating': 'C', 'secondheat-description': 'None',
'walls-env-eff': 'Very Good', 'transaction-type': 'new dwelling', 'uprn': '', 'current-energy-efficiency': '77',
'energy-consumption-current': '145', 'mainheat-description': 'Boiler and radiators, mains gas',
'lighting-cost-current': '42', 'lodgement-date': '2022-07-06', 'extension-count': '',
'mainheatc-env-eff': 'Very Good', 'lmk-key': '427710397a10def8490b0752d99ce24b0f44eb39b77c7141cc74afa86e478df1',
'wind-turbine-count': '0',
'tenure': 'Not defined - use in the case of a new dwelling for which the intended tenure in not known. It is no',
'floor-level': '2', 'potential-energy-efficiency': '77', 'hot-water-energy-eff': 'Good',
'low-energy-lighting': '100', 'walls-description': 'Average thermal transmittance 0.29 W/m-¦K',
'hotwater-description': 'From main system'}
]

View file

@ -0,0 +1,35 @@
import pytest
from model_data.EpcClean import EpcClean
from model_data.analysis.SapModel import SapModel
from model_data.tests.test_data.sap_model_data import data
class TestSapModel:
@pytest.fixture
def cleaner(self):
cleaner = EpcClean(data=data)
cleaner.clean()
return cleaner
@pytest.fixture
def model(self, cleaner):
model = SapModel(data, cleaner=cleaner)
return model
def test_run(self, model):
assert model.final_model is None
assert model.test_model is None
model.run()
assert model.final_model is not None
assert model.test_model is not None
assert (model.fit_error['Median Absolute Error'] - 1.7316860436422203) < 0.00001
assert (model.predict_error['Median Absolute Error'] - 2.85481857667385) < 0.00001
# final model doesn't do that well on this test data
assert (model.final_error['Median Absolute Error'] - 10.050349496213855) < 0.00001