Searched refs:assertArrayNear (Results 1 – 18 of 18) sorted by relevance
564 self.assertArrayNear(self._LinSpace(1., 5., 1), np.array([1.]), 1e-5)565 self.assertArrayNear(self._LinSpace(1., 5., 2), np.array([1., 5.]), 1e-5)566 self.assertArrayNear(568 self.assertArrayNear(574 self.assertArrayNear(self._LinSpace(-1., -5., 1), np.array([-1.]), 1e-5)575 self.assertArrayNear(577 self.assertArrayNear(579 self.assertArrayNear(585 self.assertArrayNear(self._LinSpace(-1., 5., 1), np.array([-1.]), 1e-5)586 self.assertArrayNear([all …]
1149 self.assertArrayNear(expected, value.flatten(), err)1330 self.assertArrayNear(value_2.flatten(), value.flatten(), err)1375 self.assertArrayNear(value_2.flatten(), value.flatten(), err)2693 self.assertArrayNear(expected, np.ravel(value), 1e-5)2817 self.assertArrayNear(expected, np.ravel(value), 2e-3)
837 self.assertArrayNear(expected_value.flatten(), actual_value.flatten(),
512 self.assertArrayNear(expected, np.ravel(value), 1e-5)
323 self.assertArrayNear(func_output.numpy(), [0.69314], 0.001)326 self.assertArrayNear(eager_output.numpy(), [0.69314], 0.001)347 self.assertArrayNear(func_outputs.numpy(), [0.5], 0.001)350 self.assertArrayNear(eager_outputs.numpy(), [0.5], 0.001)368 self.assertArrayNear(func_output.numpy(), [0.5], 0.001)371 self.assertArrayNear(eager_output.numpy(), [0.5], 0.001)394 self.assertArrayNear(func_outputs[0].numpy(), [0.25], 0.001)395 self.assertArrayNear(func_outputs[1].numpy(), [-0.125], 0.001)398 self.assertArrayNear(eager_outputs[0].numpy(), [0.25], 0.001)399 self.assertArrayNear(eager_outputs[1].numpy(), [-0.125], 0.001)
45 self.assertArrayNear(expected_output, value.output, 0.1)56 self.assertArrayNear(expected_output, value, 0.1)
82 self.assertArrayNear(expected, float_output.flatten(), 1.0)
1627 self.assertArrayNear(result[0], [8., 0.313, 1.313], 1e-3)1635 self.assertArrayNear(self.evaluate(result), [.105, .116, .062], 1e-3)1639 self.assertArrayNear(self.evaluate(result), [.105, .116, .062], 1e-3)1643 self.assertArrayNear(self.evaluate(result)[0], [.002, 0, .17], 1e-3)1647 self.assertArrayNear(self.evaluate(result)[0], [.002, 0, .17], 1e-3)1663 self.assertArrayNear(result, [.105, .116, .062], 1e-3)1670 self.assertArrayNear(result, [.105, .065, .111], 1e-3)1679 self.assertArrayNear(result, [.002, 0, .17], 1e-3)1686 self.assertArrayNear(result, [.002, .003, .036], 1e-3)1695 self.assertArrayNear(result, [0.002, 0.0005, 0.17], 1e-3)[all …]
359 self.assertArrayNear(initial_precision, self.evaluate(p_obj.result()),407 self.assertArrayNear([0.5, 0.], self.evaluate(result), 0)423 self.assertArrayNear([expected_precision, 0], self.evaluate(result), 1e-3)442 self.assertArrayNear([expected_precision, 0], self.evaluate(p_obj.result()),564 self.assertArrayNear(initial_recall, self.evaluate(r_obj.result()), 1e-3)611 self.assertArrayNear([0.5, 0.], self.evaluate(result), 0)627 self.assertArrayNear([expected_recall, 0], self.evaluate(result), 1e-3)646 self.assertArrayNear([expected_recall, 0], self.evaluate(r_obj.result()),
109 self.assertArrayNear(result, [.105, .116, .062], 1e-3)118 self.assertArrayNear(result, [.002, 0, .17], 1e-3)149 self.assertArrayNear(result, [.105, .116, .062], 1e-3)158 self.assertArrayNear(result, [.002, 0, .17], 1e-3)399 self.assertArrayNear(loss, [84.3333, 143.3666], 1e-3)491 self.assertArrayNear(loss, [10.7333, 14.5666], 1e-3)587 self.assertArrayNear(loss, [621.8518, 352.6666], 1e-3)
1252 self.assertArrayNear(self.evaluate(mre_obj.normalizer), [1, 3], 1e-1)1256 self.assertArrayNear(self.evaluate(mre_obj2.normalizer), [1, 3], 1e-1)2314 self.assertArrayNear(self.evaluate(m_obj.total_cm)[0], [1, 0], 1e-1)2315 self.assertArrayNear(self.evaluate(m_obj.total_cm)[1], [3, 0], 1e-1)2317 self.assertArrayNear(self.evaluate(m_obj.total_cm)[0], [1, 0], 1e-1)2318 self.assertArrayNear(self.evaluate(m_obj.total_cm)[1], [3, 0], 1e-1)
85 self.assertArrayNear(
382 self.assertArrayNear(a, b, 0.001)386 self.assertArrayNear(a, b, 0.001)389 self.assertArrayNear(a, b, 0.001)
2527 def assertArrayNear(self, farray1, farray2, err, msg=None): member in TensorFlowTestCase
285 self.assertArrayNear(expected, np.ravel(value), 1e-4)
2981 self.assertArrayNear(scores, [0.25, 0.75], 0.1)2986 self.assertArrayNear(scores, [0.3328, 0.8], 0.001)3224 self.assertArrayNear(eval_results[1:4], [1, 1, 5], 0.1)
413 self.assertArrayNear(eval_out, eval_out2, 0.001)
1374 self.assertArrayNear(output, ref_output, 1e-1)2097 self.assertArrayNear(history.history['loss'], ds_history.history['loss'],