Sorsogon. Step 2.c Model Internal Validation¶
In [1]:
import datetime; print(datetime.datetime.now())
2018-03-26 01:55:54.033876
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_year_bias.csv'
typ = 'resampled'
model_name = 'Sorsogon_Electricity_Water_wbias_projected_dynamic_{}'.format(typ)
survey_file = 'data/survey_{}_{}_{}.csv'.format(model_name, iterations, benchmark_year)
In [4]:
REC = plot_error(
survey_file,
census_file,
"{}, {}".format(iterations, typ),
year = benchmark_year)
Non-Residential Sector¶
In [5]:
iterations = 1000
benchmark_year = 2016
census_file = 'data/benchmarks_nonresidential.csv'
typ = 'resampled'
model_name = 'Sorsogon_NonResidentialElectricity_wbias_projected_dynamic_{}'.format(typ)
survey_file = 'data/survey_{}_{}_{}.csv'.format(model_name, iterations, benchmark_year)
In [6]:
REC = plot_error(
survey_file,
census_file,
"{}, {}".format(iterations, typ),
fit_cols = ['NonRElectricity'],
verbose = True,
#save_all = True,
is_categorical = False,
year = benchmark_year)