本文整理汇总了Python中skillmodels.SkillModel.extended_meas_coeffs方法的典型用法代码示例。如果您正苦于以下问题:Python SkillModel.extended_meas_coeffs方法的具体用法?Python SkillModel.extended_meas_coeffs怎么用?Python SkillModel.extended_meas_coeffs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类skillmodels.SkillModel
的用法示例。
在下文中一共展示了SkillModel.extended_meas_coeffs方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_extended_meas_coeffs_no_constant_factor_and_intercepts_case
# 需要导入模块: from skillmodels import SkillModel [as 别名]
# 或者: from skillmodels.SkillModel import extended_meas_coeffs [as 别名]
def test_extended_meas_coeffs_no_constant_factor_and_intercepts_case(self):
coeff_type = 'intercepts'
calc_intercepts = smo.extended_meas_coeffs(self, coeff_type, 0)
expected_intercepts = pd.Series(
data=[0.8, 1.2, 1.6, 2.0],
name='intercepts', index=['y01', 'y02', 'y03', 'y04'])
assert_series_equal(calc_intercepts, expected_intercepts)
示例2: test_extendend_meas_coeffs_constant_factor_and_loadings_case
# 需要导入模块: from skillmodels import SkillModel [as 别名]
# 或者: from skillmodels.SkillModel import extended_meas_coeffs [as 别名]
def test_extendend_meas_coeffs_constant_factor_and_loadings_case(self):
coeff_type = 'loadings'
calc_loadings = smo.extended_meas_coeffs(self, coeff_type, 1)
expected_loadings = pd.Series(
data=[2.2, 2.6, 1.4, 1.8],
name='loadings',
index=['y11', 'y12', 'y03_copied', 'y04_copied'])
assert_series_equal(calc_loadings, expected_loadings)