Description Usage Arguments Note Examples
This functions returns a data frame given a nested list of individual model result.
1 2 | construct_model_table(best_result, bdbid = NA, energy,
fiscal_year = NA, n = NA, prepost = 1)
|
best_result |
A list containing information about parameters such as slopes, change-points, and stats such as RMSE. |
bdbid |
Building id, which identifies the building or the dataset. Defaults to |
energy |
A character string. Energy Type, either 'Elec' or 'Fuel'. |
fiscal_year |
Fiscal year. Defaults to |
n |
number of observed points (independent variable) in utility data frame of a building. Defaults to |
prepost |
A numeric value. Defaults to be 1. This indicates if it is unretrofit or retrofit. See |
If more than half of energy usage points of a facility are zeros, that faciltiy will be skipped.
1 2 3 4 5 6 | util = subset(unretrofit_utility, unretrofit_utility$bdbid == 'f3acce86'
& unretrofit_utility$energy_type == 'Elec')
inter_result = run_model(util)
best_result = main_best_model_func(inter_result)
construct_model_table(best_result, 'f3acce86', 'Elec', 2017)
construct_model_table(inter_result[['3PC']], 'f3acce86', 'Elec', 2017)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.