20c65469fe1e090f4d51322178655c7253b85e93,test/examples/simple_gp_regression_test.py,,test_posterior_latent_gp_and_likelihood_with_optimization,#,78

Before Change


    // We should learn optimal hyperparmaters
    // bias should be near 0
    params = dict(posterior_observation_model.named_parameter_groups())["params"]
    constant_value = params.constant_mean.data.squeeze()[0]
    assert(math.fabs(constant_value) < .05)

    // log_lengthscale should be near -1.4
    log_lengthscale_value = params.log_lengthscale.data.squeeze()[0]

After Change


    infer = Inference(prior_observation_model)
    posterior_observation_model = infer.run(train_x, train_y, optimize=True)
    test_function_predictions = posterior_observation_model(test_x)
    mean_abs_error = torch.mean(torch.abs(test_y - test_function_predictions.mean()))
    assert(mean_abs_error.data.squeeze()[0] < 0.01)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: 20c65469fe1e090f4d51322178655c7253b85e93
Time: 2017-07-18
Author: jrg365@cornell.edu
File Name: test/examples/simple_gp_regression_test.py
Class Name:
Method Name: test_posterior_latent_gp_and_likelihood_with_optimization


Project Name: ilastik/ilastik
Commit Name: 14a5be6069063a5880d1cbf9f679d84e230a16c7
Time: 2016-07-07
Author: isenseef@googlemail.com
File Name: ilastik/applets/pixelClassification/FeatureSelectionDialog.py
Class Name: FeatureSelectionDialog
Method Name: retrieve_segmentation


Project Name: elfi-dev/elfi
Commit Name: 1f97f7c318ba607c294bd2dfc34aeb91ab593d72
Time: 2016-12-19
Author: henri.vuollekoski@aalto.fi
File Name: examples/ma2.py
Class Name:
Method Name: autocov