Пример #1
0
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()
Пример #2
0
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
Пример #4
0
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
Пример #6
0
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")
Пример #8
0
def nrh_simulate(buildings, aggregations):
    return utils.hedonic_simulate("nrh.yaml", buildings, aggregations,
                                  "non_residential_price")
Пример #9
0
def rsh_simulate(buildings, aggregations):
    return utils.hedonic_simulate("rsh.yaml", buildings, aggregations,
                                  "residential_price")
Пример #10
0
def rsh_simulate(buildings, aggregations):
    return utils.hedonic_simulate("rsh.yaml", buildings, aggregations,
                                  "residential_price")
Пример #11
0
def rsh_simulate(settings, buildings, aggregations):
    yaml_cfg = settings['rsh_yaml']
    return utils.hedonic_simulate(yaml_cfg, buildings, aggregations,
                                  "residential_price")
Пример #12
0
def nrh_simulate2(buildings, aggregations):
    return utils.hedonic_simulate("nrh2.yaml", buildings, aggregations,
                                  "non_residential_price")
Пример #13
0
def nrh_simulate(buildings, aggregations):
    return utils.hedonic_simulate("nrh.yaml", buildings, aggregations,
                                  "nonres_rent_per_sqft")
Пример #14
0
def rsh_simulate(buildings, aggregations):
    return utils.hedonic_simulate("rsh.yaml", buildings, aggregations,
                                  "res_price_per_sqft")
Пример #15
0
def nrh_simulate(buildings, aggregations):
    return utils.hedonic_simulate("nrh.yaml", buildings, aggregations,
                                  "nonres_rent_per_sqft")
Пример #16
0
def rsh_simulate(buildings, aggregations):
    return utils.hedonic_simulate("rsh.yaml", buildings, aggregations,
                                  "res_price_per_sqft")
Пример #17
0
def repmnr_simulate(parcels, zones, gridcells):
    return utils.hedonic_simulate("repmnrcoef.yaml",
                                  parcels, [zones, gridcells],
                                  "land_value", cast=True)
Пример #18
0
def nrh_simulate(buildings, aggregations, nrh_config):
    return utils.hedonic_simulate(nrh_config, buildings, aggregations,
                                  "non_residential_rent")