41ed86f13674c1dcf7c77e5290efbd2154bf70a5,test/examples/test_kissgp_gp_regression.py,TestKISSGPRegression,test_kissgp_gp_mean_abs_error,#TestKISSGPRegression#,60
Before Change
gp_model.train()
likelihood.train()
optimizer = optim.Adam(list(gp_model.parameters()) + list(likelihood.parameters()) , lr=0.1)
optimizer.n_iter = 0
with gpytorch.settings.debug(False):
for _ in range(25):
optimizer.zero_grad()
output = gp_model(train_x)
loss = -mll(output, train_y)
loss.backward()
optimizer.n_iter += 1
optimizer.step()
for param in gp_model.parameters():
self.assertTrue(param.grad is not None)
self.assertGreater(param.grad.norm().item(), 0)
for param in likelihood.parameters():
self.assertTrue(param.grad is not None)
self.assertGreater(param.grad.norm().item(), 0)
// Test the model
gp_model.eval()
likelihood.eval()
test_preds = likelihood(gp_model(test_x)).mean
After Change
gp_model.train()
likelihood.train()
optimizer = optim.Adam(gp_model.parameters() , lr=0.1)
optimizer.n_iter = 0
with gpytorch.settings.debug(False):
for _ in range(25):
In pattern: SUPERPATTERN
Frequency: 8
Non-data size: 12
Instances Project Name: cornellius-gp/gpytorch
Commit Name: 41ed86f13674c1dcf7c77e5290efbd2154bf70a5
Time: 2020-08-29
Author: gpleiss@gmail.com
File Name: test/examples/test_kissgp_gp_regression.py
Class Name: TestKISSGPRegression
Method Name: test_kissgp_gp_mean_abs_error
Project Name: cornellius-gp/gpytorch
Commit Name: 41ed86f13674c1dcf7c77e5290efbd2154bf70a5
Time: 2020-08-29
Author: gpleiss@gmail.com
File Name: test/examples/test_kissgp_gp_regression.py
Class Name: TestKISSGPRegression
Method Name: test_kissgp_gp_mean_abs_error
Project Name: cornellius-gp/gpytorch
Commit Name: 41ed86f13674c1dcf7c77e5290efbd2154bf70a5
Time: 2020-08-29
Author: gpleiss@gmail.com
File Name: test/examples/test_kissgp_dkl_regression.py
Class Name: TestDKLRegression
Method Name: test_dkl_gp_fast_pred_var
Project Name: cornellius-gp/gpytorch
Commit Name: 41ed86f13674c1dcf7c77e5290efbd2154bf70a5
Time: 2020-08-29
Author: gpleiss@gmail.com
File Name: test/examples/test_sgpr_regression.py
Class Name: TestSGPRRegression
Method Name: test_sgpr_mean_abs_error_cuda
Project Name: cornellius-gp/gpytorch
Commit Name: 41ed86f13674c1dcf7c77e5290efbd2154bf70a5
Time: 2020-08-29
Author: gpleiss@gmail.com
File Name: test/examples/test_white_noise_regression.py
Class Name: TestWhiteNoiseGPRegression
Method Name: test_posterior_latent_gp_and_likelihood_fast_pred_var
Project Name: cornellius-gp/gpytorch
Commit Name: 41ed86f13674c1dcf7c77e5290efbd2154bf70a5
Time: 2020-08-29
Author: gpleiss@gmail.com
File Name: test/examples/test_kissgp_white_noise_regression.py
Class Name: TestKISSGPWhiteNoiseRegression
Method Name: test_kissgp_gp_mean_abs_error_cuda
Project Name: cornellius-gp/gpytorch
Commit Name: 41ed86f13674c1dcf7c77e5290efbd2154bf70a5
Time: 2020-08-29
Author: gpleiss@gmail.com
File Name: test/examples/test_kissgp_gp_regression.py
Class Name: TestKISSGPRegression
Method Name: test_kissgp_gp_mean_abs_error_cuda
Project Name: cornellius-gp/gpytorch
Commit Name: 41ed86f13674c1dcf7c77e5290efbd2154bf70a5
Time: 2020-08-29
Author: gpleiss@gmail.com
File Name: test/examples/test_kissgp_multiplicative_regression.py
Class Name: TestKISSGPMultiplicativeRegression
Method Name: test_kissgp_gp_mean_abs_error
Project Name: cornellius-gp/gpytorch
Commit Name: 41ed86f13674c1dcf7c77e5290efbd2154bf70a5
Time: 2020-08-29
Author: gpleiss@gmail.com
File Name: test/examples/test_white_noise_regression.py
Class Name: TestWhiteNoiseGPRegression
Method Name: test_posterior_latent_gp_and_likelihood_with_optimization