Home
last modified time | relevance | path

Searched refs:assertNear (Results 1 – 25 of 38) sorted by relevance

12

/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/
Dlogistic_regressor_test.py77 self.assertNear(
79 self.assertNear(
81 self.assertNear(
83 self.assertNear(0.5, eval_metrics[metric_key.MetricKey.AUC], err=1e-6)
84 self.assertNear(
86 self.assertNear(
88 self.assertNear(
95 self.assertNear(
98 self.assertNear(
100 self.assertNear(
[all …]
Dkmeans_test.py177 self.assertNear(self.true_score, score2, self.true_score * 0.05)
199 self.assertNear(self.true_score, score, self.true_score * 0.01)
213 self.assertNear(score, np.sum(true_offsets), 0.01 * score)
Dlinear_test.py1757 self.assertNear(
1815 self.assertNear(
1817 self.assertNear(
1819 self.assertNear(
1866 self.assertNear(
1868 self.assertNear(
1870 self.assertNear(
/external/tensorflow/tensorflow/contrib/opt/python/training/
Dagn_optimizer_test.py170 self.assertNear(0.1, sessions[0].run(var_0), 1e-6)
171 self.assertNear(0.6, sessions[0].run(var_1), 1e-6)
179 self.assertNear(0.3, sessions[0].run(var_0), 1e-6)
180 self.assertNear(0.8, sessions[0].run(var_1), 1e-6)
187 self.assertNear(0.1, sessions[0].run(var_0), 1e-6)
188 self.assertNear(0.6, sessions[0].run(var_1), 1e-6)
196 self.assertNear(0.2, sessions[0].run(var_0), 1e-6)
197 self.assertNear(0.7, sessions[0].run(var_1), 1e-6)
235 self.assertNear(0.1, sessions[0].run(var_0_g), 1e-6)
242 self.assertNear(0.2, sessions[0].run(var_0_g), 1e-6)
[all …]
/external/tensorflow/tensorflow/contrib/tensor_forest/client/
Deval_metrics_test.py41 self.assertNear(0.5, in_top_2_op.eval(), 0.0001)
58 self.assertNear(0.4, in_top_3_op.eval(), 0.0001)
69 self.assertNear(0.6, accuracy_op.eval(), 0.0001)
83 self.assertNear(0.813583, r2_op.eval(), 0.0001)
/external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/bijectors/
Dmatrix_inverse_tril_test.py62 self.assertNear(expected_fldj_, fldj_, err=1e-3)
63 self.assertNear(-expected_fldj_, ildj_, err=1e-3)
80 self.assertNear(expected_fldj_, fldj_, err=1e-3)
81 self.assertNear(-expected_fldj_, ildj_, err=1e-3)
98 self.assertNear(expected_fldj_, fldj_, err=1e-3)
99 self.assertNear(-expected_fldj_, ildj_, err=1e-3)
/external/tensorflow/tensorflow/python/tools/
Dstrip_unused_test.py54 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)
Dfreeze_graph_test.py67 self.assertNear(2.0, output, 0.00001)
118 self.assertNear(2.0, output, 0.00001)
182 self.assertNear(2.0, output, 0.00001)
219 self.assertNear(2.0, output, 0.00001)
266 self.assertNear(feature_value, output, 0.00001)
/external/tensorflow/tensorflow/examples/speech_commands/
Dgenerate_streaming_test_wav_test.py34 self.assertNear(1.0, track_data[2500], 0.0001)
35 self.assertNear(0.0, track_data[3500], 0.0001)
Dinput_data_test.py271 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)
/external/tensorflow/tensorflow/contrib/graph_editor/tests/
Dtransform_test.py151 self.assertNear(
165 self.assertNear(c_val, 2.001, ERROR_TOLERANCE)
166 self.assertNear(c_new_val, 3.001, ERROR_TOLERANCE)
181 self.assertNear(c_val, 2.001, ERROR_TOLERANCE)
182 self.assertNear(c_new_val["c"], 3.001, ERROR_TOLERANCE)
240 self.assertNear(g_val, 0.0, ERROR_TOLERANCE)
241 self.assertNear(res_val, 0.0, ERROR_TOLERANCE)
/external/tensorflow/tensorflow/contrib/linear_optimizer/python/
Dsdca_estimator_test.py535 self.assertNear(
592 self.assertNear(
594 self.assertNear(
596 self.assertNear(
642 self.assertNear(
644 self.assertNear(
646 self.assertNear(
/external/tensorflow/tensorflow/python/ops/
Dinit_ops_v2_test.py271 self.assertNear(np.mean(x), expect_mean, err=1e-2)
272 self.assertNear(np.var(x), expect_var, err=1e-2)
287 self.assertNear(np.mean(x), expect_mean, err=1e-2)
288 self.assertNear(np.var(x), expect_var, err=1e-2)
304 self.assertNear(np.mean(x), expect_mean, err=1e-2)
305 self.assertNear(np.var(x), expect_var, err=1e-2)
317 self.assertNear(np.mean(x), expect_mean, err=1e-2)
318 self.assertNear(np.var(x), expect_var, err=1e-2)
/external/tensorflow/tensorflow/python/kernel_tests/distributions/
Dstudent_t_test.py424 self.assertNear(np.pi, np.mean(sample_vals), err=0.1)
425 self.assertNear(np.pi, mean_val, err=1e-6)
431 self.assertNear(stats.t.pdf(np.pi, 3., loc=np.pi), mean_pdf_val, err=1e-6)
460 self.assertNear(5., np.mean(sample_vals[:, 0, :]), err=0.1)
461 self.assertNear(6., np.mean(sample_vals[:, 1, :]), err=0.1)
468 self.assertNear(
472 self.assertNear(
485 self.assertNear(1., total, err=err)
/external/tensorflow/tensorflow/python/util/
Ddispatch_test.py64 self.assertNear(x_plus_y.score, 1.0, 0.001)
94 self.assertNear(result.score, 0.4, 0.001)
/external/tensorflow/tensorflow/contrib/factorization/python/ops/
Dfactorization_ops_test.py154 self.assertNear(
246 self.assertNear(
323 self.assertNear(
422 self.assertNear(
494 self.assertNear(
766 self.assertNear(
769 self.assertNear(0, out[i][j], err=0.5, msg="%d, %d" % (i, j))
Dkmeans_test.py175 self.assertNear(self.true_score, score2, self.true_score * 0.05)
196 self.assertNear(self.true_score, score, self.true_score * 0.01)
208 self.assertNear(score, np.sum(true_offsets), 0.01 * score)
/external/tensorflow/tensorflow/python/training/
Dmonitored_session_test.py1875 self.assertNear(3.2, session.run_step_fn(step_fn), 0.1)
1947 self.assertNear(3.2, session.run_step_fn(model.step_fn), 0.1)
1996 self._testing.assertNear(0.3 + 0.5 + 0.7,
1998 self._testing.assertNear(0.3 + 0.5 + 0.7 + 1.1,
2002 self.assertNear(0.3, step_context.session.run(stage_0), 0.1)
2027 self._testing.assertNear(0.3 + 0.5 + 0.7,
2029 self._testing.assertNear(0.3 + 0.5 + 0.7 + 1.1,
2033 self.assertNear(0.3, step_context.session.run(stage_0), 0.1)
2078 self.assertNear(3.2, session.run_step_fn(step_fn), 0.1)
2107 self.assertNear(3.2, session.run_step_fn(step_fn), 0.1)
[all …]
/external/tensorflow/tensorflow/contrib/metrics/python/ops/
Dmetric_ops_large_test.py63 self.assertNear(got_value, expected_value, 1.0)
/external/tensorflow/tensorflow/python/framework/
Dgraph_util_test.py217 self.assertNear(4.0, output, 0.00001)
249 self.assertNear(2.0, output, 0.00001)
301 self.assertNear(2.0, output, 0.00001)
/external/tensorflow/tensorflow/python/kernel_tests/
Dinit_ops_test.py405 self.assertNear(np.mean(x), expect_mean, err=1e-2)
406 self.assertNear(np.var(x), expect_var, err=1e-2)
422 self.assertNear(np.mean(x), expect_mean, err=1e-2)
423 self.assertNear(np.var(x), expect_var, err=1e-2)
440 self.assertNear(np.mean(x), expect_mean, err=1e-2)
441 self.assertNear(np.var(x), expect_var, err=1e-2)
453 self.assertNear(np.mean(x), expect_mean, err=1e-2)
454 self.assertNear(np.var(x), expect_var, err=1e-2)
/external/tensorflow/tensorflow/contrib/distribute/python/
Dminimize_loss_test.py259 self.assertNear(expected_moving_means[i], moving_means[i], 0.0001)
356 self.assertNear(weight, 2 + 21.2 * distribution.num_replicas_in_sync,
360 self.assertNear(weight, 2 + 10.6, 0.0001)
/external/tensorflow/tensorflow/contrib/gan/python/features/python/
Dclip_weights_test.py60 self.assertNear(0.1, self.variables[0].eval(), 1e-7)
/external/tensorflow/tensorflow/contrib/ffmpeg/
Ddecode_audio_op_test.py72 self.assertNear(
/external/tensorflow/tensorflow/contrib/gan/python/losses/python/
Dlosses_impl_test.py618 self.assertNear(expected_loss, combined_loss.eval(), 1e-5)
670 self.assertNear(gnorm_np, precond_gnorm_np, 1e-4)
697 self.assertNear(5.25, loss.eval(), 1e-5)

12