當前位置: 首頁>>代碼示例>>Python>>正文


Python RegressionModel.__init__方法代碼示例

本文整理匯總了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)
開發者ID:christianurich,項目名稱:VIBe2UrbanSim,代碼行數:12,代碼來源:regression_model_member.py

示例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)
開發者ID:christianurich,項目名稱:VIBe2UrbanSim,代碼行數:15,代碼來源:housing_price_model.py

示例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)
開發者ID:psrc,項目名稱:urbansim,代碼行數:19,代碼來源:income_regression_model.py

示例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)
開發者ID:psrc,項目名稱:urbansim,代碼行數:21,代碼來源:land_price_model.py

示例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)
開發者ID:christianurich,項目名稱:VIBe2UrbanSim,代碼行數:22,代碼來源:water_demand_model.py


注:本文中的opus_core.regression_model.RegressionModel.__init__方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。