本文整理汇总了Python中skillmodels.SkillModel._helpers_for_H_transformation_with_psi方法的典型用法代码示例。如果您正苦于以下问题:Python SkillModel._helpers_for_H_transformation_with_psi方法的具体用法?Python SkillModel._helpers_for_H_transformation_with_psi怎么用?Python SkillModel._helpers_for_H_transformation_with_psi使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类skillmodels.SkillModel
的用法示例。
在下文中一共展示了SkillModel._helpers_for_H_transformation_with_psi方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_helpers_for_h_transformation
# 需要导入模块: from skillmodels import SkillModel [as 别名]
# 或者: from skillmodels.SkillModel import _helpers_for_H_transformation_with_psi [as 别名]
def test_helpers_for_h_transformation(self):
self.endog_correction = True
self.endog_factor = ['f1']
res1 = np.zeros(20, dtype=bool)
for i in (0, 1, 6, 8, 11, 16, 18):
res1[i] = True
res2 = np.zeros((7, 1))
res3 = np.zeros((7, 2))
calc1, calc2, calc3 = smo._helpers_for_H_transformation_with_psi(self)
aae(calc1, res1)
aae(calc2, res2)
aae(calc3, res3)