Searched refs:assertNear (Results 1 – 21 of 21) sorted by relevance
34 self.assertNear(1.0, track_data[2500], 0.0001)35 self.assertNear(0.0, track_data[3500], 0.0001)
271 self.assertNear(0, spectrogram[0, 0, 0], 0.1)272 self.assertNear(200, spectrogram[0, 0, 5], 0.1)279 self.assertNear(0.0, features_min, 1e-5)
54 self.assertNear(-4.0, output, 0.00001)100 self.assertNear(20.0, output, 0.00001)117 self.assertNear(6.0, output, 0.00001)160 self.assertNear(-50.0, output, 0.00001)
69 self.assertNear(2.0, output, 0.00001)120 self.assertNear(2.0, output, 0.00001)185 self.assertNear(2.0, output, 0.00001)222 self.assertNear(2.0, output, 0.00001)276 self.assertNear(feature_value, output, 0.00001)
325 self.assertNear(np.mean(x), expect_mean, err=1e-2)326 self.assertNear(np.var(x), expect_var, err=1e-2)341 self.assertNear(np.mean(x), expect_mean, err=1e-2)342 self.assertNear(np.var(x), expect_var, err=1e-2)357 self.assertNear(np.mean(x), expect_mean, err=1e-2)358 self.assertNear(np.var(x), expect_var, err=1e-2)370 self.assertNear(np.mean(x), expect_mean, err=1e-2)371 self.assertNear(np.var(x), expect_var, err=1e-2)388 self.assertNear(np.mean(x), expect_mean, err=1e-3)389 self.assertNear(np.var(x), expect_var, err=1e-3)
5354 self.assertNear(30.321, psnr1, 0.001, msg="q20.dtype=" + str(q20.dtype))5356 self.assertNear(29.994, psnr2, 0.001)5358 self.assertNear(35.302, psnr3, 0.001)
749 self.assertNear(
420 self.assertNear(np.pi, np.mean(sample_vals), err=0.1)421 self.assertNear(np.pi, mean_val, err=1e-6)427 self.assertNear(stats.t.pdf(np.pi, 3., loc=np.pi), mean_pdf_val, err=1e-6)456 self.assertNear(5., np.mean(sample_vals[:, 0, :]), err=0.1)457 self.assertNear(6., np.mean(sample_vals[:, 1, :]), err=0.1)464 self.assertNear(468 self.assertNear(481 self.assertNear(1., total, err=err)
332 self.assertNear(1., total, err=err)
345 self.assertNear(1., total, err=err)
1921 self.assertNear(3.2, session.run_step_fn(step_fn), 0.1)1993 self.assertNear(3.2, session.run_step_fn(model.step_fn), 0.1)2042 self._testing.assertNear(0.3 + 0.5 + 0.7,2044 self._testing.assertNear(0.3 + 0.5 + 0.7 + 1.1,2048 self.assertNear(0.3, step_context.session.run(stage_0), 0.1)2073 self._testing.assertNear(0.3 + 0.5 + 0.7,2075 self._testing.assertNear(0.3 + 0.5 + 0.7 + 1.1,2079 self.assertNear(0.3, step_context.session.run(stage_0), 0.1)2124 self.assertNear(3.2, session.run_step_fn(step_fn), 0.1)2153 self.assertNear(3.2, session.run_step_fn(step_fn), 0.1)[all …]
211 self.assertNear(0.0, self.evaluate(v1), 1e-5)215 self.assertNear(3.14, self.evaluate(v1), 1e-5)
146 self.assertNear(x_plus_y.score, 1.0, 0.001)176 self.assertNear(result.score, 0.4, 0.001)
575 self.assertNear(2.0, output, 0.00001)595 self.assertNear(2.0, output, 0.00001)612 self.assertNear(3.0, output, 0.00001)642 self.assertNear(3.0, output, 0.00001)644 self.assertNear(5.0, output, 0.00001)
2509 def assertNear(self, f1, f2, err, msg=None): member in TensorFlowTestCase2541 self.assertNear(float(f1), float(f2), err, msg=msg)
296 self.assertNear(expected_moving_means[i], moving_means[i], 0.0001)408 self.assertNear(weight, 2 + 0.106 * distribution.num_replicas_in_sync,412 self.assertNear(weight, 2 + 0.053, 0.0001)
2583 self.assertNear(
408 self.assertNear(np.mean(x), expect_mean, err=1e-2)409 self.assertNear(np.var(x), expect_var, err=1e-2)425 self.assertNear(np.mean(x), expect_mean, err=1e-2)426 self.assertNear(np.var(x), expect_var, err=1e-2)443 self.assertNear(np.mean(x), expect_mean, err=1e-2)444 self.assertNear(np.var(x), expect_var, err=1e-2)456 self.assertNear(np.mean(x), expect_mean, err=1e-2)457 self.assertNear(np.var(x), expect_var, err=1e-2)
119 self.assertNear(expected, self.evaluate(reduced), 0.00001)124 self.assertNear(expected, self.evaluate(reduced), 0.00001)
330 self.assertNear((2 * (5+6)/2 * (7+8)/2), product_of_means.numpy(), 1e-3)
815 self.assertNear(