本文整理汇总了Python中skillmodels.SkillModel._initial_deltas方法的典型用法代码示例。如果您正苦于以下问题:Python SkillModel._initial_deltas方法的具体用法?Python SkillModel._initial_deltas怎么用?Python SkillModel._initial_deltas使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类skillmodels.SkillModel
的用法示例。
在下文中一共展示了SkillModel._initial_deltas方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_initial_deltas_without_controls_besides_constant
# 需要导入模块: from skillmodels import SkillModel [as 别名]
# 或者: from skillmodels.SkillModel import _initial_deltas [as 别名]
def test_initial_deltas_without_controls_besides_constant(self):
self.controls = [[], [], []]
exp1 = np.array([[3], [0], [0], [4], [0], [0]])
exp2 = np.array([[5], [6], [0]])
exp3 = np.array([[7], [0], [0], [0]])
expected = [exp1, exp2, exp3]
calculated = smo._initial_deltas(self)
for calc, ex in zip(calculated, expected):
aae(calc, ex)
示例2: test_initial_deltas_with_controls_and_constants
# 需要导入模块: from skillmodels import SkillModel [as 别名]
# 或者: from skillmodels.SkillModel import _initial_deltas [as 别名]
def test_initial_deltas_with_controls_and_constants(self):
exp1 = np.array([
[3, 0, 0], [0, 0, 0], [0, 0, 0], [4, 0, 0], [0, 0, 0], [0, 0, 0]])
exp2 = np.array([[5, 0, 0, 0], [6, 0, 0, 0], [0, 0, 0, 0]])
exp3 = np.array([[7, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0]])
expected = [exp1, exp2, exp3]
calculated = smo._initial_deltas(self)
for calc, ex in zip(calculated, expected):
aae(calc, ex)