本文整理汇总了Python中opus_core.regression_model.RegressionModel.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python RegressionModel.__init__方法的具体用法?Python RegressionModel.__init__怎么用?Python RegressionModel.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类opus_core.regression_model.RegressionModel
的用法示例。
在下文中一共展示了RegressionModel.__init__方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from opus_core.regression_model import RegressionModel [as 别名]
# 或者: from opus_core.regression_model.RegressionModel import __init__ [as 别名]
def __init__(self, group_member, datasets_grouping_attribute, **kwargs):
""" 'group_member' is of type ModelGroupMember. 'datasets_grouping_attribute' is attribute of the dataset
(passed to the 'run' and 'estimate' method) that is used for grouping.
"""
self.group_member = group_member
group_member_name = group_member.get_member_name()
self.group_member.set_agents_grouping_attribute(datasets_grouping_attribute)
self.model_name = "%s %s" % (group_member_name.capitalize(), self.model_name)
self.model_short_name = "%s %s" % (group_member_name.capitalize(), self.model_short_name),
RegressionModel.__init__(self, **kwargs)
示例2: __init__
# 需要导入模块: from opus_core.regression_model import RegressionModel [as 别名]
# 或者: from opus_core.regression_model.RegressionModel import __init__ [as 别名]
def __init__(self, regression_procedure="opus_core.linear_regression",
filter_attribute="urbansim.gridcell.has_residential_units",
submodel_string="development_type_id",
run_config=None,
estimate_config=None,
debuglevel=0):
self.filter_attribute = filter_attribute
RegressionModel.__init__(self,
regression_procedure=regression_procedure,
submodel_string=submodel_string,
run_config=run_config,
estimate_config=estimate_config,
debuglevel=debuglevel)
示例3: __init__
# 需要导入模块: from opus_core.regression_model import RegressionModel [as 别名]
# 或者: from opus_core.regression_model.RegressionModel import __init__ [as 别名]
def __init__(self, regression_procedure="opus_core.linear_regression",
submodel_string=None, outcome_attribute = None,
run_config=None, estimate_config=None, debuglevel=None, dataset_pool=None):
"""'outcome_attribute' must be specified in order to compute the residuals.
"""
RegressionModel.__init__(self,
regression_procedure=regression_procedure,
submodel_string=submodel_string,
run_config=run_config,
estimate_config=estimate_config,
debuglevel=debuglevel, dataset_pool=dataset_pool)
self.outcome_attribute = outcome_attribute
if (self.outcome_attribute is not None) and not isinstance(self.outcome_attribute, VariableName):
self.outcome_attribute = VariableName(self.outcome_attribute)
开发者ID:christianurich,项目名称:VIBe2UrbanSim,代码行数:16,代码来源:regression_model_with_addition_initial_residuals.py
示例4: __init__
# 需要导入模块: from opus_core.regression_model import RegressionModel [as 别名]
# 或者: from opus_core.regression_model.RegressionModel import __init__ [as 别名]
def __init__(self, regression_procedure="opus_core.linear_regression",
filter_attribute=None,
submodel_string=None,
outcome_attribute=None,
run_config=None,
estimate_config=None,
debuglevel=0, dataset_pool=None):
self.filter_attribute = filter_attribute
if outcome_attribute is not None:
self.outcome_attribute = outcome_attribute
RegressionModel.__init__(self,
regression_procedure=regression_procedure,
submodel_string=submodel_string,
run_config=run_config,
estimate_config=estimate_config,
debuglevel=debuglevel, dataset_pool=dataset_pool)
示例5: __init__
# 需要导入模块: from opus_core.regression_model import RegressionModel [as 别名]
# 或者: from opus_core.regression_model.RegressionModel import __init__ [as 别名]
def __init__(self, regression_procedure="opus_core.linear_regression",
filter = "urbansim.gridcell.is_in_development_type_group_developable",
submodel_string = "development_type_id",
run_config=None,
estimate_config=None,
debuglevel=0, dataset_pool=None):
self.filter = filter
if filter is None:
if run_config is not None and 'filter' in run_config:
self.filter = run_config["filter"]
elif estimate_config is not None and 'filter' in estimate_config:
self.filter = estimate_config["filter"]
RegressionModel.__init__(self,
regression_procedure=regression_procedure,
submodel_string=submodel_string,
run_config=run_config,
estimate_config=estimate_config,
debuglevel=debuglevel, dataset_pool=dataset_pool)
示例6: __init__
# 需要导入模块: from opus_core.regression_model import RegressionModel [as 别名]
# 或者: from opus_core.regression_model.RegressionModel import __init__ [as 别名]
def __init__(self, regression_procedure="opus_core.linear_regression",
outcome_attribute="month_combination_2",
filter_attribute=None,
submodel_string="land_use_type_id",
run_config=None,
estimate_config=None,
debuglevel=0,
dataset_pool=None):
self.outcome_attribute = outcome_attribute
if (self.outcome_attribute is not None) and not isinstance(self.outcome_attribute, VariableName):
self.outcome_attribute = VariableName(self.outcome_attribute)
self.filter_attribute = filter_attribute
RegressionModel.__init__(self,
regression_procedure=regression_procedure,
submodel_string=submodel_string,
run_config=run_config,
estimate_config=estimate_config,
debuglevel=debuglevel,
dataset_pool=dataset_pool)