2424
2525namespace albatross {
2626
27- struct LeaveOneIntervalOut {
27+ struct GroupedLeaveOneIntervalOut {
2828
29- LeaveOneIntervalOut (){};
30- explicit LeaveOneIntervalOut (double group_domain_size_)
29+ GroupedLeaveOneIntervalOut (){};
30+ explicit GroupedLeaveOneIntervalOut (double group_domain_size_)
3131 : group_domain_size(group_domain_size_){};
3232
3333 int operator ()(const double &f) const {
@@ -44,7 +44,7 @@ struct LeaveOneIntervalOut {
4444TEST (TestPicGP, TestPredictionExists) {
4545 const auto dataset = make_toy_linear_data ();
4646 UniformlySpacedInducingPoints strategy (8 );
47- LeaveOneIntervalOut grouper;
47+ GroupedLeaveOneIntervalOut grouper;
4848 const auto pic =
4949 pic_gp_from_covariance (make_simple_covariance_function (), grouper,
5050 strategy, " pic" , DenseQRImplementation{});
@@ -67,7 +67,7 @@ TEST(TestPicGP, ScalarEquivalence) {
6767 UniformlySpacedInducingPoints strategy (kNumInducingPoints );
6868 // Set the grouper so that all the simple test data falls within one
6969 // group.
70- LeaveOneIntervalOut grouper (10 );
70+ GroupedLeaveOneIntervalOut grouper (10 );
7171 auto direct = gp_from_covariance (make_simple_covariance_function (), " direct" );
7272 auto pic = pic_gp_from_covariance (make_simple_covariance_function (), grouper,
7373 strategy, " pic" , DenseQRImplementation{});
@@ -92,7 +92,7 @@ TEST(TestPicGP, SingleBlockEquivalence) {
9292 UniformlySpacedInducingPoints strategy (kNumInducingPoints );
9393 // Set the grouper so that all the simple test data falls within one
9494 // group.
95- LeaveOneIntervalOut grouper (10 );
95+ GroupedLeaveOneIntervalOut grouper (10 );
9696 auto direct = gp_from_covariance (make_simple_covariance_function (), " direct" );
9797 auto pic = pic_gp_from_covariance (make_simple_covariance_function (), grouper,
9898 strategy, " pic" , DenseQRImplementation{});
@@ -271,7 +271,7 @@ TEST(TestPicGP, BruteForceEquivalenceOneBlock) {
271271 static constexpr std::size_t kNumInducingPoints = 5 ;
272272
273273 UniformlySpacedInducingPoints strategy (kNumInducingPoints );
274- LeaveOneIntervalOut grouper (10 );
274+ GroupedLeaveOneIntervalOut grouper (10 );
275275 auto pic = pic_gp_from_covariance (make_simple_covariance_function (), grouper,
276276 strategy, " pic" , DenseQRImplementation{});
277277
@@ -296,7 +296,7 @@ TEST(TestPicGP, BruteForceEquivalenceMultipleBlocks) {
296296 static constexpr std::size_t kNumInducingPoints = 5 ;
297297
298298 UniformlySpacedInducingPoints strategy (kNumInducingPoints );
299- LeaveOneIntervalOut grouper (2 );
299+ GroupedLeaveOneIntervalOut grouper (2 );
300300 auto pic = pic_gp_from_covariance (make_simple_covariance_function (), grouper,
301301 strategy, " pic" , DenseQRImplementation{});
302302
@@ -322,7 +322,7 @@ TEST(TestPicGP, PITCEquivalenceOutOfTraining) {
322322 static constexpr std::size_t kNumInducingPoints = 5 ;
323323
324324 UniformlySpacedInducingPoints strategy (kNumInducingPoints );
325- LeaveOneIntervalOut grouper (2 );
325+ GroupedLeaveOneIntervalOut grouper (2 );
326326 auto pic = pic_gp_from_covariance (make_simple_covariance_function (), grouper,
327327 strategy, " pic" , DenseQRImplementation{});
328328
@@ -348,7 +348,7 @@ TEST(TestPicGP, PredictMeanEquivalent) {
348348 static constexpr std::size_t kNumInducingPoints = 5 ;
349349
350350 UniformlySpacedInducingPoints strategy (kNumInducingPoints );
351- LeaveOneIntervalOut grouper (2 );
351+ GroupedLeaveOneIntervalOut grouper (2 );
352352 auto pic = pic_gp_from_covariance (make_simple_covariance_function (), grouper,
353353 strategy, " pic" , DenseQRImplementation{});
354354
@@ -371,7 +371,7 @@ TEST(TestPicGP, PredictMarginalEquivalent) {
371371 static constexpr std::size_t kNumInducingPoints = 5 ;
372372
373373 UniformlySpacedInducingPoints strategy (kNumInducingPoints );
374- LeaveOneIntervalOut grouper (2 );
374+ GroupedLeaveOneIntervalOut grouper (2 );
375375 auto pic = pic_gp_from_covariance (make_simple_covariance_function (), grouper,
376376 strategy, " pic" , DenseQRImplementation{});
377377
0 commit comments