def rsh_simulate(buildings, aggregations, settings): utils.hedonic_simulate("rsh.yaml", buildings, aggregations, "residential_price") if "rsh_simulate" in settings: low = float(settings["rsh_simulate"]["low"]) high = float(settings["rsh_simulate"]["high"]) buildings.update_col("residential_price", buildings.residential_price.clip(low, high)) print "Clipped rsh_simulate produces\n", \ buildings.residential_price.describe()
def rsh_simulate(residential_units, aggregations, settings, rsh_config): """ This uses the MTC's model specification from rsh.yaml, but generates unit-level price predictions rather than building-level. Data expectations ----------------- - tk """ utils.hedonic_simulate(cfg=rsh_config, tbl=residential_units, join_tbls=aggregations, out_fname='unit_residential_price') _mtc_clip(residential_units, 'unit_residential_price', settings) return
def rrh_simulate(residential_units, aggregations, settings, rrh_config): """ This uses an altered hedonic specification to generate unit-level rent predictions. Data expectations ----------------- - tk """ utils.hedonic_simulate(cfg=rrh_config, tbl=residential_units, join_tbls=aggregations, out_fname='unit_residential_rent') _mtc_clip(residential_units, 'unit_residential_rent', settings, price_scale=0.05/12) return
def rrh_simulate(residential_units, aggregations, settings): """ This uses an altered hedonic specification to generate unit-level rent predictions. Data expectations ----------------- - tk """ utils.hedonic_simulate(cfg='rrh.yaml', tbl=residential_units, join_tbls=aggregations, out_fname='unit_residential_rent') _mtc_clip(residential_units, 'unit_residential_rent', settings, price_scale=0.05/12) return
def nrh_simulate(buildings, aggregations, nrh_config): return utils.hedonic_simulate(nrh_config, buildings, aggregations, "non_residential_rent")
def nrh_simulate(buildings, aggregations): return utils.hedonic_simulate("nrh.yaml", buildings, aggregations, "non_residential_price")
def rsh_simulate(buildings, aggregations): return utils.hedonic_simulate("rsh.yaml", buildings, aggregations, "residential_price")
def rsh_simulate(settings, buildings, aggregations): yaml_cfg = settings['rsh_yaml'] return utils.hedonic_simulate(yaml_cfg, buildings, aggregations, "residential_price")
def nrh_simulate2(buildings, aggregations): return utils.hedonic_simulate("nrh2.yaml", buildings, aggregations, "non_residential_price")
def nrh_simulate(buildings, aggregations): return utils.hedonic_simulate("nrh.yaml", buildings, aggregations, "nonres_rent_per_sqft")
def rsh_simulate(buildings, aggregations): return utils.hedonic_simulate("rsh.yaml", buildings, aggregations, "res_price_per_sqft")
def repmnr_simulate(parcels, zones, gridcells): return utils.hedonic_simulate("repmnrcoef.yaml", parcels, [zones, gridcells], "land_value", cast=True)