1c9ed4232fcd99f35ab3fef1cf579ba1f6f12645,test/util/function_factory_test.py,,test_trace_logdet_quad_form_factory,#,14

Before Change


    x = Variable(torch.linspace(0, 1, 10))
    rbf_covar = RBFKernel()
    rbf_covar.initialize(log_lengthscale=-4)
    covar_module = GridInterpolationKernel(rbf_covar)
    covar_module.eval()
    covar_module.initialize_interpolation_grid(4, [(0, 1)])
    c = Variable(covar_module.forward(x.unsqueeze(1), x.unsqueeze(1)).c.data, requires_grad=True)

    T = Variable(torch.zeros(4, 4))
    for i in range(4):

After Change


    x = Variable(torch.linspace(0, 1, 10))
    rbf_covar = RBFKernel()
    rbf_covar.initialize(log_lengthscale=-4)
    covar_module = GridInterpolationKernel(rbf_covar, grid_size=4, grid_bounds=[(0, 1)])
    covar_module.eval()
    c = Variable(covar_module.forward(x.unsqueeze(1), x.unsqueeze(1)).c.data, requires_grad=True)

    T = Variable(torch.zeros(4, 4))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 5

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: 1c9ed4232fcd99f35ab3fef1cf579ba1f6f12645
Time: 2017-11-13
Author: gpleiss@gmail.com
File Name: test/util/function_factory_test.py
Class Name:
Method Name: test_trace_logdet_quad_form_factory


Project Name: cornellius-gp/gpytorch
Commit Name: 1c9ed4232fcd99f35ab3fef1cf579ba1f6f12645
Time: 2017-11-13
Author: gpleiss@gmail.com
File Name: test/util/function_factory_test.py
Class Name:
Method Name: test_interpolated_toeplitz_gp_marginal_log_likelihood_forward


Project Name: cornellius-gp/gpytorch
Commit Name: 1c9ed4232fcd99f35ab3fef1cf579ba1f6f12645
Time: 2017-11-13
Author: gpleiss@gmail.com
File Name: test/util/function_factory_test.py
Class Name:
Method Name: test_kp_toeplitz_gp_marginal_log_likelihood_forward


Project Name: cornellius-gp/gpytorch
Commit Name: 1c9ed4232fcd99f35ab3fef1cf579ba1f6f12645
Time: 2017-11-13
Author: gpleiss@gmail.com
File Name: test/util/function_factory_test.py
Class Name:
Method Name: foo_kp_toeplitz_gp_marginal_log_likelihood_backward


Project Name: cornellius-gp/gpytorch
Commit Name: 1c9ed4232fcd99f35ab3fef1cf579ba1f6f12645
Time: 2017-11-13
Author: gpleiss@gmail.com
File Name: test/util/function_factory_test.py
Class Name:
Method Name: test_interpolated_toeplitz_gp_marginal_log_likelihood_backward