def testStudentTWithAbsDfSoftplusScale(self):
with self.test_session():
df = constant_op.constant([-3.2, -4.6])
mu = constant_op.constant([-4.2, 3.4])
sigma = constant_op.constant([-6.4, -8.8])
student = ds.StudentTWithAbsDfSoftplusScale(df=df, loc=mu, scale=sigma)
self.assertAllClose(
math_ops.floor(math_ops.abs(df)).eval(), student.df.eval())
self.assertAllClose(mu.eval(), student.loc.eval())
self.assertAllClose(nn_ops.softplus(sigma).eval(), student.scale.eval())
student_t_test.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录