本文整理汇总了Python中skillmodels.SkillModel._generate_start_factors方法的典型用法代码示例。如果您正苦于以下问题:Python SkillModel._generate_start_factors方法的具体用法?Python SkillModel._generate_start_factors怎么用?Python SkillModel._generate_start_factors使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类skillmodels.SkillModel
的用法示例。
在下文中一共展示了SkillModel._generate_start_factors方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_generate_start_factors_cov_cholesky
# 需要导入模块: from skillmodels import SkillModel [as 别名]
# 或者: from skillmodels.SkillModel import _generate_start_factors [as 别名]
def test_generate_start_factors_cov_cholesky(self):
self.nobs = 200000
self.me_params = np.array([5, 10, 1, 0.1, 1.99749844])
self.cholesky_of_P_zero = True
calc_factors = smo._generate_start_factors(self)
df = pd.DataFrame(calc_factors)
calc_cov = df.cov().values
aaae(calc_cov, self.exp_cov, decimal=2)
示例2: test_generate_start_factors_mean_with_normalized_X_zero
# 需要导入模块: from skillmodels import SkillModel [as 别名]
# 或者: from skillmodels.SkillModel import _generate_start_factors [as 别名]
def test_generate_start_factors_mean_with_normalized_X_zero(self):
exp_mean = np.array([0, 0])
self.params_quants = []
calc_mean = smo._generate_start_factors(self).mean(axis=0)
aaae(calc_mean, exp_mean, decimal=2)
示例3: test_generate_start_factors_cov_no_cholesky
# 需要导入模块: from skillmodels import SkillModel [as 别名]
# 或者: from skillmodels.SkillModel import _generate_start_factors [as 别名]
def test_generate_start_factors_cov_no_cholesky(self):
self.nobs = 200000
calc_factors = smo._generate_start_factors(self)
df = pd.DataFrame(calc_factors)
calc_cov = df.cov().values
aaae(calc_cov, self.exp_cov, decimal=2)
示例4: test_generate_start_factors_mean_with_estimated_X_zero
# 需要导入模块: from skillmodels import SkillModel [as 别名]
# 或者: from skillmodels.SkillModel import _generate_start_factors [as 别名]
def test_generate_start_factors_mean_with_estimated_X_zero(self):
exp_mean = np.array([5, 10])
calc_mean = smo._generate_start_factors(self).mean(axis=0)
aaae(calc_mean, exp_mean, decimal=2)