bce6052bd84a421a44bc590b1eda23923f63b951,test/examples/kissgp_additive_regression_test.py,,test_kissgp_gp_mean_abs_error,#,53

Before Change



    // Test the model
    gp_model.eval()
    gp_model.condition(train_x, train_y)
    test_preds = gp_model(test_x).mean()
    mean_abs_error = torch.mean(torch.abs(test_y - test_preds))
    assert(mean_abs_error.data.squeeze()[0] < 0.15)

After Change


    gp_model.eval()
    likelihood.eval()

    test_preds = likelihood(gp_model(test_x)).mean()
    mean_abs_error = torch.mean(torch.abs(test_y - test_preds))
    assert(mean_abs_error.data.squeeze()[0] < 0.15)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: bce6052bd84a421a44bc590b1eda23923f63b951
Time: 2018-01-24
Author: gpleiss@gmail.com
File Name: test/examples/kissgp_additive_regression_test.py
Class Name:
Method Name: test_kissgp_gp_mean_abs_error


Project Name: cornellius-gp/gpytorch
Commit Name: bce6052bd84a421a44bc590b1eda23923f63b951
Time: 2018-01-24
Author: gpleiss@gmail.com
File Name: test/examples/simple_gp_regression_test.py
Class Name:
Method Name: test_posterior_latent_gp_and_likelihood_with_optimization


Project Name: cornellius-gp/gpytorch
Commit Name: bce6052bd84a421a44bc590b1eda23923f63b951
Time: 2018-01-24
Author: gpleiss@gmail.com
File Name: test/examples/spectral_mixture_gp_regression_test.py
Class Name:
Method Name: test_spectral_mixture_gp_mean_abs_error


Project Name: cornellius-gp/gpytorch
Commit Name: bce6052bd84a421a44bc590b1eda23923f63b951
Time: 2018-01-24
Author: gpleiss@gmail.com
File Name: test/examples/kissgp_kronecker_product_regression_test.py
Class Name:
Method Name: test_kissgp_gp_mean_abs_error