@@ -59,7 +59,6 @@ TEST(TestPicGP, TestPredictionExists) {
59
59
EXPECT_GT (pic_pred.mean .size (), 0 );
60
60
}
61
61
62
-
63
62
TEST (TestPicGP, ScalarEquivalence) {
64
63
static constexpr std::size_t kNumTrainPoints = 3 ;
65
64
static constexpr std::size_t kNumTestPoints = 1 ;
@@ -337,7 +336,8 @@ TEST(TestPicGP, PITCEquivalenceOutOfTraining) {
337
336
338
337
auto test_features = linspace (10.1 , 19.9 , kNumTestPoints );
339
338
auto pic_pred = pic_fit.predict_with_measurement_noise (test_features).joint ();
340
- auto pitc_pred = pitc_fit.predict_with_measurement_noise (test_features).joint ();
339
+ auto pitc_pred =
340
+ pitc_fit.predict_with_measurement_noise (test_features).joint ();
341
341
342
342
EXPECT_LT (distance::wasserstein_2 (pic_pred, pitc_pred), 1e-12 );
343
343
}
@@ -358,7 +358,8 @@ TEST(TestPicGP, PredictMeanEquivalent) {
358
358
359
359
auto test_features = linspace (0.1 , 9.9 , kNumTestPoints );
360
360
auto pic_pred = pic_fit.predict_with_measurement_noise (test_features).mean ();
361
- auto pic_joint_pred = pic_fit.predict_with_measurement_noise (test_features).joint ();
361
+ auto pic_joint_pred =
362
+ pic_fit.predict_with_measurement_noise (test_features).joint ();
362
363
363
364
const double pic_mean_error = (pic_pred - pic_joint_pred.mean ).norm ();
364
365
EXPECT_LT (pic_mean_error, 1e-12 );
@@ -379,8 +380,10 @@ TEST(TestPicGP, PredictMarginalEquivalent) {
379
380
auto pic_fit = pic.fit (dataset);
380
381
381
382
auto test_features = linspace (0.1 , 9.9 , kNumTestPoints );
382
- auto pic_pred = pic_fit.predict_with_measurement_noise (test_features).marginal ();
383
- auto pic_joint_pred = pic_fit.predict_with_measurement_noise (test_features).joint ();
383
+ auto pic_pred =
384
+ pic_fit.predict_with_measurement_noise (test_features).marginal ();
385
+ auto pic_joint_pred =
386
+ pic_fit.predict_with_measurement_noise (test_features).joint ();
384
387
385
388
const double pic_marginal_error =
386
389
(pic_pred.mean - pic_joint_pred.mean ).norm ();
@@ -400,5 +403,4 @@ TEST(TestPicGP, PredictMarginalEquivalent) {
400
403
.format (Eigen::FullPrecision);
401
404
}
402
405
403
-
404
406
} // namespace albatross
0 commit comments