Brussels. Step 2.c Model Internal Validation¶
In [1]:
import datetime; print(datetime.datetime.now())
2018-04-09 10:47:47.530334
Notebook abstract
Model internal validation.
In [2]:
from smum.microsim.util_plot import plot_error
Residential Sector¶
In [3]:
iterations = 1000
benchmark_year = 2016
census_file = 'data/benchmarks_be_year_bias3_climate.csv'
typ = 'resampled'
model_name = 'Brussels_Electricity_Water_projected_dynamic_{}_bias'.format(typ)
survey_file = 'data/survey_{}_{}_{}.csv'.format(model_name, iterations, benchmark_year)
In [4]:
import pandas as pd
input_census = pd.read_csv(census_file, index_col = 0)
In [5]:
sufix = 4
census_file = './temp/calibrated_benchmarks_{}.csv'.format(sufix)
REC = plot_error(
survey_file,
census_file,
"{}, {}".format(iterations, typ),
year = benchmark_year,
#force_fit = False,
pop = input_census.loc[benchmark_year, 'pop'],
add_cols = input_census.loc[benchmark_year, ['Electricity', 'Water']],
skip = ['e_sqm', 'w_Income', 'e_CDD', 'e_HDD'],
fit_cols = ['Electricity', 'Water']
)