Home
last modified time | relevance | path

Searched refs:GetQuantileSpecs (Results 1 – 4 of 4) sorted by relevance

/external/tensorflow/tensorflow/contrib/boosted_trees/lib/quantiles/
Dweighted_quantiles_stream_test.cc34 TEST(GetQuantileSpecs, InvalidEps) { in TEST() argument
35 EXPECT_DEATH({ Stream::GetQuantileSpecs(-0.01, 0L); }, "eps >= 0"); in TEST()
36 EXPECT_DEATH({ Stream::GetQuantileSpecs(1.01, 0L); }, "eps < 1"); in TEST()
39 TEST(GetQuantileSpecs, ZeroEps) { in TEST() argument
40 EXPECT_DEATH({ Stream::GetQuantileSpecs(0.0, 0L); }, "max_elements > 0"); in TEST()
41 EXPECT_EQ(Stream::GetQuantileSpecs(0.0, 1LL), Tuple(1LL, 2LL)); in TEST()
42 EXPECT_EQ(Stream::GetQuantileSpecs(0.0, 20LL), Tuple(1LL, 20LL)); in TEST()
45 TEST(GetQuantileSpecs, NonZeroEps) { in TEST() argument
46 EXPECT_DEATH({ Stream::GetQuantileSpecs(0.01, 0L); }, "max_elements > 0"); in TEST()
47 EXPECT_EQ(Stream::GetQuantileSpecs(0.1, 320LL), Tuple(4LL, 31LL)); in TEST()
[all …]
Dweighted_quantiles_stream.h77 std::tie(max_levels_, block_size_) = GetQuantileSpecs(eps, max_elements); in WeightedQuantilesStream()
207 static std::tuple<int64, int64> GetQuantileSpecs(double eps,
293 WeightedQuantilesStream<ValueType, WeightType, CompareFn>::GetQuantileSpecs( in GetQuantileSpecs() function
/external/tensorflow/tensorflow/core/kernels/boosted_trees/quantiles/
Dweighted_quantiles_stream_test.cc33 TEST(GetQuantileSpecs, InvalidEps) { in TEST() argument
34 EXPECT_DEATH({ Stream::GetQuantileSpecs(-0.01, 0L); }, "eps >= 0"); in TEST()
35 EXPECT_DEATH({ Stream::GetQuantileSpecs(1.01, 0L); }, "eps < 1"); in TEST()
38 TEST(GetQuantileSpecs, ZeroEps) { in TEST() argument
39 EXPECT_DEATH({ Stream::GetQuantileSpecs(0.0, 0L); }, "max_elements > 0"); in TEST()
40 EXPECT_EQ(Stream::GetQuantileSpecs(0.0, 1LL), Tuple(1LL, 2LL)); in TEST()
41 EXPECT_EQ(Stream::GetQuantileSpecs(0.0, 20LL), Tuple(1LL, 20LL)); in TEST()
44 TEST(GetQuantileSpecs, NonZeroEps) { in TEST() argument
45 EXPECT_DEATH({ Stream::GetQuantileSpecs(0.01, 0L); }, "max_elements > 0"); in TEST()
46 EXPECT_EQ(Stream::GetQuantileSpecs(0.1, 320LL), Tuple(4LL, 31LL)); in TEST()
[all …]
Dweighted_quantiles_stream.h77 std::tie(max_levels_, block_size_) = GetQuantileSpecs(eps, max_elements); in WeightedQuantilesStream()
207 static std::tuple<int64, int64> GetQuantileSpecs(double eps,
293 WeightedQuantilesStream<ValueType, WeightType, CompareFn>::GetQuantileSpecs( in GetQuantileSpecs() function