student_t_test.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:DeepLearning_VirtualReality_BigData_Project 作者: rashmitripathi 项目源码 文件源码
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())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号