Searched refs:sample_values (Results 1 – 14 of 14) sorted by relevance
/external/tensorflow/tensorflow/python/kernel_tests/distributions/ |
D | uniform_test.py | 161 sample_values = self.evaluate(samples) 162 self.assertEqual(sample_values.shape, (100000, 2)) 164 sample_values[::, 0].mean(), (b_v + a1_v) / 2, atol=1e-1, rtol=0.) 166 sample_values[::, 1].mean(), (b_v + a2_v) / 2, atol=1e-1, rtol=0.) 168 np.any(sample_values[::, 0] < a1_v) or np.any(sample_values >= b_v)) 170 np.any(sample_values[::, 1] < a2_v) or np.any(sample_values >= b_v)) 188 sample_values = self.evaluate(samples) 191 np.any(sample_values[:, 0, 0] < a_v[0]) or 192 np.any(sample_values[:, 0, 0] >= b_v[0])) 194 np.any(sample_values[:, 0, 1] < a_v[1]) or [all …]
|
D | exponential_test.py | 142 sample_values = self.evaluate(samples) 143 self.assertEqual(sample_values.shape, (100000, 2)) 144 self.assertFalse(np.any(sample_values < 0.0)) 149 stats.kstest(sample_values[:, i], 163 sample_values = self.evaluate(samples) 165 self.assertFalse(np.any(sample_values < 0.0)) 170 stats.kstest(sample_values[:, 0, i], 173 stats.kstest(sample_values[:, 1, i],
|
D | gamma_test.py | 221 sample_values = self.evaluate(samples) 223 self.assertEqual(sample_values.shape, (n,)) 224 self.assertTrue(self._kstest(alpha_v, beta_v, sample_values)) 228 sample_values.mean(), 232 sample_values.var(), 244 sample_values = self.evaluate(samples) 246 self.assertEqual(sample_values.shape, (n,)) 247 self.assertTrue(self._kstest(alpha_v, beta_v, sample_values)) 251 sample_values.mean(), 255 sample_values.var(), [all …]
|
D | student_t_test.py | 168 sample_values = self.evaluate(samples) 170 self.assertEqual(sample_values.shape, (n_val,)) 171 self.assertAllClose(sample_values.mean(), mu_v, rtol=0.1, atol=0) 173 sample_values.var(), sigma_v**2 * df_v / (df_v - 2), rtol=0.1, atol=0) 174 self._checkKLApprox(df_v, mu_v, sigma_v, sample_values) 199 sample_values = self.evaluate(samples) 201 self.assertEqual(sample_values.shape, (n_val, 4)) 202 self.assertTrue(np.all(np.logical_not(np.isnan(sample_values)))) 216 sample_values = self.evaluate(samples) 219 sample_values[:, 0, 0].mean(), mu_v[0], rtol=0.1, atol=0) [all …]
|
D | laplace_test.py | 227 sample_values = self.evaluate(samples) 229 self.assertEqual(sample_values.shape, (n,)) 233 sample_values.mean(), 238 sample_values.var(), 242 self.assertTrue(self._kstest(loc_v, scale_v, sample_values)) 262 sample_values = self.evaluate(samples) 264 self.assertEqual(sample_values.shape, (n, 10, 100)) 271 sample_values.mean(axis=0), 276 sample_values.var(axis=0), 284 s = sample_values[:, bi, ai]
|
D | beta_test.py | 263 sample_values = self.evaluate(samples) 264 self.assertEqual(sample_values.shape, (100000,)) 265 self.assertFalse(np.any(sample_values < 0.0)) 271 sample_values, 276 sample_values.mean(axis=0), stats.beta.mean(a, b), atol=1e-2) 278 np.cov(sample_values, rowvar=0), stats.beta.var(a, b), atol=1e-1) 316 sample_values = self.evaluate(samples) 317 self.assertEqual(sample_values.shape, (100000, 3, 2, 2)) 318 self.assertFalse(np.any(sample_values < 0.0)) 322 sample_values[:, 1, :].mean(axis=0),
|
D | normal_test.py | 425 sample_values = self.evaluate(samples) 430 self.assertEqual(sample_values.shape, (100000,)) 431 self.assertAllClose(sample_values.mean(), mu_v, atol=1e-1) 432 self.assertAllClose(sample_values.std(), sigma_v, atol=1e-1) 440 self.assertAllEqual(expected_samples_shape, sample_values.shape) 447 self.assertAllEqual(expected_samples_shape, sample_values.shape) 472 sample_values = self.evaluate(samples) 478 self.assertAllClose(sample_values[:, 0, 0].mean(), mu_v[0], atol=1e-1) 479 self.assertAllClose(sample_values[:, 0, 0].std(), sigma_v[0], atol=1e-1) 480 self.assertAllClose(sample_values[:, 0, 1].mean(), mu_v[1], atol=1e-1) [all …]
|
D | bernoulli_test.py | 260 sample_values = self.evaluate(samples) 261 self.assertTrue(np.all(sample_values >= 0)) 262 self.assertTrue(np.all(sample_values <= 1)) 266 self.assertAllClose(p, np.mean(sample_values, axis=0), atol=1e-2) 267 self.assertEqual(set([0, 1]), set(sample_values.flatten()))
|
D | dirichlet_test.py | 255 sample_values = self.evaluate(samples) 256 self.assertEqual(sample_values.shape, (100000, 2)) 257 self.assertTrue(np.all(sample_values > 0.0)) 263 sample_values[:, 0],
|
D | categorical_test.py | 373 sample_values = self.evaluate(samples) 374 self.assertFalse(np.any(sample_values < 0)) 375 self.assertFalse(np.any(sample_values > 1)) 378 sample_values == 0, axis=0), atol=1e-2) 381 sample_values == 1, axis=0), atol=1e-2)
|
/external/webrtc/test/testsupport/ |
D | perf_test_unittest.cc | 89 EXPECT_EQ(hist1.sample_values(0), 7); in TEST_F() 90 EXPECT_EQ(hist1.sample_values(1), 1); in TEST_F() 91 EXPECT_EQ(hist1.sample_values(2), 1); in TEST_F() 92 EXPECT_EQ(hist1.sample_values(3), 2); in TEST_F() 93 EXPECT_EQ(hist1.sample_values(4), 3); in TEST_F()
|
D | perf_test_histogram_writer_unittest.cc | 54 EXPECT_EQ(hist1.sample_values(0), 15e7); in TEST() 166 EXPECT_EQ(hist1.sample_values(0), 128) << "1024 bits = 128 bytes"; in TEST()
|
/external/perfetto/tools/trace_to_text/ |
D | pprof_builder.cc | 743 protozero::PackedVarInt sample_values; in WriteAllocations() local 752 sample_values.Append((*view_its)[i].Get(1).AsLong()); in WriteAllocations() 755 if (!builder->AddSample(sample_values, callstack_id)) in WriteAllocations()
|
/external/angle/src/tests/test_utils/runner/ |
D | HistogramWriter.cpp | 159 js::Value sample(histogram.sample_values(sampleIndex)); in getAsJSON()
|