本文整理汇总了Python中skillmodels.SkillModel._predict_final_factors方法的典型用法代码示例。如果您正苦于以下问题:Python SkillModel._predict_final_factors方法的具体用法?Python SkillModel._predict_final_factors怎么用?Python SkillModel._predict_final_factors使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类skillmodels.SkillModel
的用法示例。
在下文中一共展示了SkillModel._predict_final_factors方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_predict_ff_mocked_same_result_in_second
# 需要导入模块: from skillmodels import SkillModel [as 别名]
# 或者: from skillmodels.SkillModel import _predict_final_factors [as 别名]
def test_predict_ff_mocked_same_result_in_second(self, mock_tsp, mock_pp):
# this test makes sure that y copy arrays where necessary
mock_tsp.side_effect = fake_tsp
self.likelihood_arguments_dict = Mock(return_value=self.lh_args)
calc1 = smo._predict_final_factors(self, self.change)
calc2 = smo._predict_final_factors(self, self.change)
aaae(calc1, calc2)
示例2: test_predict_ff_intermediate_false_mocked
# 需要导入模块: from skillmodels import SkillModel [as 别名]
# 或者: from skillmodels.SkillModel import _predict_final_factors [as 别名]
def test_predict_ff_intermediate_false_mocked(self, mock_tsp, mock_pp):
mock_tsp.side_effect = fake_tsp
self.likelihood_arguments_dict = Mock(return_value=self.lh_args)
exp = np.ones((10, 2)) * 4
exp[:, 0] = 12
calc = smo._predict_final_factors(self, self.change)
aaae(calc, exp)
示例3: test_predict_ff_intermediate_true_mocked
# 需要导入模块: from skillmodels import SkillModel [as 别名]
# 或者: from skillmodels.SkillModel import _predict_final_factors [as 别名]
def test_predict_ff_intermediate_true_mocked(self, mock_tsp, mock_pp):
mock_tsp.side_effect = fake_tsp
self.likelihood_arguments_dict = Mock(return_value=self.lh_args)
exp1 = np.ones((10, 2))
exp2 = np.ones((10, 2)) * 2
exp2[:, 0] = 4
exp = [exp1, exp2]
calc = smo._predict_final_factors(self, self.change, True)
for c, e in zip(calc, exp):
aaae(c, e)