Searched refs:assertNear (Results 1 – 18 of 18) sorted by relevance
30 self.assertNear(1.0, track_data[2500], 0.0001)31 self.assertNear(0.0, track_data[3500], 0.0001)
267 self.assertNear(0, spectrogram[0, 0, 0], 0.1)268 self.assertNear(200, spectrogram[0, 0, 5], 0.1)275 self.assertNear(0.0, features_min, 1e-5)
50 self.assertNear(-4.0, output, 0.00001)96 self.assertNear(20.0, output, 0.00001)113 self.assertNear(6.0, output, 0.00001)156 self.assertNear(-50.0, output, 0.00001)
65 self.assertNear(2.0, output, 0.00001)116 self.assertNear(2.0, output, 0.00001)181 self.assertNear(2.0, output, 0.00001)218 self.assertNear(2.0, output, 0.00001)272 self.assertNear(feature_value, output, 0.00001)
321 self.assertNear(np.mean(x), expect_mean, err=1e-2)322 self.assertNear(np.var(x), expect_var, err=1e-2)337 self.assertNear(np.mean(x), expect_mean, err=1e-2)338 self.assertNear(np.var(x), expect_var, err=1e-2)353 self.assertNear(np.mean(x), expect_mean, err=1e-2)354 self.assertNear(np.var(x), expect_var, err=1e-2)366 self.assertNear(np.mean(x), expect_mean, err=1e-2)367 self.assertNear(np.var(x), expect_var, err=1e-2)384 self.assertNear(np.mean(x), expect_mean, err=2e-3)385 self.assertNear(np.var(x), expect_var, err=2e-3)
5631 self.assertNear(30.321, psnr1, 0.001, msg="q20.dtype=" + str(q20.dtype))5633 self.assertNear(29.994, psnr2, 0.001)5635 self.assertNear(35.302, psnr3, 0.001)
724 self.assertNear(
416 self.assertNear(np.pi, np.mean(sample_vals), err=0.1)417 self.assertNear(np.pi, mean_val, err=1e-6)423 self.assertNear(stats.t.pdf(np.pi, 3., loc=np.pi), mean_pdf_val, err=1e-6)452 self.assertNear(5., np.mean(sample_vals[:, 0, :]), err=0.1)453 self.assertNear(6., np.mean(sample_vals[:, 1, :]), err=0.1)460 self.assertNear(464 self.assertNear(477 self.assertNear(1., total, err=err)
328 self.assertNear(1., total, err=err)
341 self.assertNear(1., total, err=err)
1958 self.assertNear(3.2, session.run_step_fn(step_fn), 0.1)2030 self.assertNear(3.2, session.run_step_fn(model.step_fn), 0.1)2079 self._testing.assertNear(0.3 + 0.5 + 0.7,2081 self._testing.assertNear(0.3 + 0.5 + 0.7 + 1.1,2085 self.assertNear(0.3, step_context.session.run(stage_0), 0.1)2110 self._testing.assertNear(0.3 + 0.5 + 0.7,2112 self._testing.assertNear(0.3 + 0.5 + 0.7 + 1.1,2116 self.assertNear(0.3, step_context.session.run(stage_0), 0.1)2161 self.assertNear(3.2, session.run_step_fn(step_fn), 0.1)2190 self.assertNear(3.2, session.run_step_fn(step_fn), 0.1)[all …]
208 self.assertNear(0.0, self.evaluate(v1), 1e-5)212 self.assertNear(3.14, self.evaluate(v1), 1e-5)
404 self.assertNear(np.mean(x), expect_mean, err=1e-2)405 self.assertNear(np.var(x), expect_var, err=1e-2)421 self.assertNear(np.mean(x), expect_mean, err=1e-2)422 self.assertNear(np.var(x), expect_var, err=1e-2)439 self.assertNear(np.mean(x), expect_mean, err=1e-2)440 self.assertNear(np.var(x), expect_var, err=1e-2)452 self.assertNear(np.mean(x), expect_mean, err=1e-2)453 self.assertNear(np.var(x), expect_var, err=1e-2)
959 self.assertNear(2.0, output, 0.00001)979 self.assertNear(2.0, output, 0.00001)996 self.assertNear(3.0, output, 0.00001)1026 self.assertNear(3.0, output, 0.00001)1028 self.assertNear(5.0, output, 0.00001)
2856 def assertNear(self, f1, f2, err, msg=None): member in TensorFlowTestCase2888 self.assertNear(float(f1), float(f2), err, msg=msg)
156 self.assertNear(x_plus_y.score, 1.0, 0.001)187 self.assertNear(result.score, 0.4, 0.001)
139 self.assertNear(expected, self.evaluate(reduced), 0.00001)144 self.assertNear(expected, self.evaluate(reduced), 0.00001)
328 self.assertNear((2 * (5+6)/2 * (7+8)/2), product_of_means.numpy(), 1e-3)