24
24
25
25
namespace albatross {
26
26
27
- struct LeaveOneIntervalOut {
27
+ struct GroupedLeaveOneIntervalOut {
28
28
29
- LeaveOneIntervalOut (){};
30
- explicit LeaveOneIntervalOut (double group_domain_size_)
29
+ GroupedLeaveOneIntervalOut (){};
30
+ explicit GroupedLeaveOneIntervalOut (double group_domain_size_)
31
31
: group_domain_size(group_domain_size_){};
32
32
33
33
int operator ()(const double &f) const {
@@ -44,7 +44,7 @@ struct LeaveOneIntervalOut {
44
44
TEST (TestPicGP, TestPredictionExists) {
45
45
const auto dataset = make_toy_linear_data ();
46
46
UniformlySpacedInducingPoints strategy (8 );
47
- LeaveOneIntervalOut grouper;
47
+ GroupedLeaveOneIntervalOut grouper;
48
48
const auto pic =
49
49
pic_gp_from_covariance (make_simple_covariance_function (), grouper,
50
50
strategy, " pic" , DenseQRImplementation{});
@@ -67,7 +67,7 @@ TEST(TestPicGP, ScalarEquivalence) {
67
67
UniformlySpacedInducingPoints strategy (kNumInducingPoints );
68
68
// Set the grouper so that all the simple test data falls within one
69
69
// group.
70
- LeaveOneIntervalOut grouper (10 );
70
+ GroupedLeaveOneIntervalOut grouper (10 );
71
71
auto direct = gp_from_covariance (make_simple_covariance_function (), " direct" );
72
72
auto pic = pic_gp_from_covariance (make_simple_covariance_function (), grouper,
73
73
strategy, " pic" , DenseQRImplementation{});
@@ -92,7 +92,7 @@ TEST(TestPicGP, SingleBlockEquivalence) {
92
92
UniformlySpacedInducingPoints strategy (kNumInducingPoints );
93
93
// Set the grouper so that all the simple test data falls within one
94
94
// group.
95
- LeaveOneIntervalOut grouper (10 );
95
+ GroupedLeaveOneIntervalOut grouper (10 );
96
96
auto direct = gp_from_covariance (make_simple_covariance_function (), " direct" );
97
97
auto pic = pic_gp_from_covariance (make_simple_covariance_function (), grouper,
98
98
strategy, " pic" , DenseQRImplementation{});
@@ -271,7 +271,7 @@ TEST(TestPicGP, BruteForceEquivalenceOneBlock) {
271
271
static constexpr std::size_t kNumInducingPoints = 5 ;
272
272
273
273
UniformlySpacedInducingPoints strategy (kNumInducingPoints );
274
- LeaveOneIntervalOut grouper (10 );
274
+ GroupedLeaveOneIntervalOut grouper (10 );
275
275
auto pic = pic_gp_from_covariance (make_simple_covariance_function (), grouper,
276
276
strategy, " pic" , DenseQRImplementation{});
277
277
@@ -296,7 +296,7 @@ TEST(TestPicGP, BruteForceEquivalenceMultipleBlocks) {
296
296
static constexpr std::size_t kNumInducingPoints = 5 ;
297
297
298
298
UniformlySpacedInducingPoints strategy (kNumInducingPoints );
299
- LeaveOneIntervalOut grouper (2 );
299
+ GroupedLeaveOneIntervalOut grouper (2 );
300
300
auto pic = pic_gp_from_covariance (make_simple_covariance_function (), grouper,
301
301
strategy, " pic" , DenseQRImplementation{});
302
302
@@ -322,7 +322,7 @@ TEST(TestPicGP, PITCEquivalenceOutOfTraining) {
322
322
static constexpr std::size_t kNumInducingPoints = 5 ;
323
323
324
324
UniformlySpacedInducingPoints strategy (kNumInducingPoints );
325
- LeaveOneIntervalOut grouper (2 );
325
+ GroupedLeaveOneIntervalOut grouper (2 );
326
326
auto pic = pic_gp_from_covariance (make_simple_covariance_function (), grouper,
327
327
strategy, " pic" , DenseQRImplementation{});
328
328
@@ -348,7 +348,7 @@ TEST(TestPicGP, PredictMeanEquivalent) {
348
348
static constexpr std::size_t kNumInducingPoints = 5 ;
349
349
350
350
UniformlySpacedInducingPoints strategy (kNumInducingPoints );
351
- LeaveOneIntervalOut grouper (2 );
351
+ GroupedLeaveOneIntervalOut grouper (2 );
352
352
auto pic = pic_gp_from_covariance (make_simple_covariance_function (), grouper,
353
353
strategy, " pic" , DenseQRImplementation{});
354
354
@@ -371,7 +371,7 @@ TEST(TestPicGP, PredictMarginalEquivalent) {
371
371
static constexpr std::size_t kNumInducingPoints = 5 ;
372
372
373
373
UniformlySpacedInducingPoints strategy (kNumInducingPoints );
374
- LeaveOneIntervalOut grouper (2 );
374
+ GroupedLeaveOneIntervalOut grouper (2 );
375
375
auto pic = pic_gp_from_covariance (make_simple_covariance_function (), grouper,
376
376
strategy, " pic" , DenseQRImplementation{});
377
377
0 commit comments