def __init__(self): Baseline.__init__(self) self['config_changes_for_estimation'] = ConfigChangesForEstimation() self['cache_directory'] = '/Users/hana/urbansim_cache/eugene/eugene_1980_baseyear_cache' self['estimation_database_configuration'] = EstimationDatabaseConfiguration( database_name = 'eugene_1980_baseyear_estimation_xxx', ) self['datasets_to_cache_after_each_model' ] = [] self['low_memory_mode'] = False self['base_year'] = 1980 self['years'] = (1980,1980) self['seed'] = 10 self['models_configuration']['land_price_model']['controller'] = LandPriceModelConfigurationCreator( #estimation_procedure='opus_core.bma_for_linear_regression_r', #estimate_config={'bma_imageplot_filename': 'bma_image.pdf'} ).execute() self['models_configuration']['household_location_choice_model']['controller'] = HouseholdLocationChoiceModelConfigurationCreator( #estimation_procedure='opus_core.bhhh_mnl_estimation_with_diagnose', ).execute()
'hlcm': ['household_location_choice_model', 'eugene.estimation.HLCM_specification', None], 'elcm-industrial': ['employment_location_choice_model', 'eugene.estimation.ELCM_specification', 'industrial'], 'elcm-commercial': ['employment_location_choice_model', 'eugene.estimation.ELCM_specification', 'commercial'], 'elcm-home_based': ['employment_location_choice_model', 'eugene.estimation.ELCM_specification', 'home_based'], 'lpm': ['land_price_model', 'eugene.estimation.LPM_specification', None], 'dplcm-industrial': ['development_project_location_choice_model', 'eugene.estimation.DPLCM_specification', 'industrial'], 'dplcm-commercial': ['development_project_location_choice_model', 'eugene.estimation.DPLCM_specification', 'commercial'], 'dplcm-residential': ['development_project_location_choice_model', 'eugene.estimation.DPLCM_specification', 'residential'], 'rlsm': ['residential_land_share_model', 'eugene.estimation.RLSM_specification', None], } #model = 'hlcm' #model = 'elcm-industrial' #model = 'elcm-commercial' #model = 'elcm-home_based' model = 'dplcm-industrial' #model = 'dplcm-commercial' #model ='dplcm-residential' #model = 'lpm' #model = 'rlsm' config = Baseline() config.merge(my_configuration) config['config_changes_for_estimation'] = ConfigChangesForEstimation() estimator = EstimationRunner(models[model][0], specification_module=models[model][1], model_group=models[model][2], configuration=config, save_estimation_results=True) estimator.estimate() #estimator.reestimate() #estimator.reestimate(submodels=[])
'development_project_location_choice_model', 'eugene.estimation.DPLCM_specification', 'residential' ], 'rlsm': [ 'residential_land_share_model', 'eugene.estimation.RLSM_specification', None ], } #model = 'hlcm' #model = 'elcm-industrial' #model = 'elcm-commercial' #model = 'elcm-home_based' model = 'dplcm-industrial' #model = 'dplcm-commercial' #model ='dplcm-residential' #model = 'lpm' #model = 'rlsm' config = Baseline() config.merge(my_configuration) config['config_changes_for_estimation'] = ConfigChangesForEstimation() estimator = EstimationRunner(models[model][0], specification_module=models[model][1], model_group=models[model][2], configuration=config, save_estimation_results=True) estimator.estimate() #estimator.reestimate() #estimator.reestimate(submodels=[])