254fe1c943375153033ce020efbd73c7893094c8,test/examples/test_whitened_svgp_gp_regression.py,TestSVGPRegression,test_regression_error,#TestSVGPRegression#Any#,58

Before Change


        model.train()
        likelihood.train()
        optimizer = optim.Adam([{"params": model.parameters()}, {"params": likelihood.parameters()}], lr=0.01)
        with gpytorch.settings.skip_logdet_forward(skip_logdet_forward):
            for _ in range(170):
                optimizer.zero_grad()
                output = model(train_x)
                loss = -mll(output, train_y)
                loss.backward()
                optimizer.step()

        for param in model.parameters():
            self.assertTrue(param.grad is not None)
            self.assertGreater(param.grad.norm().item(), 0)
        for param in likelihood.parameters():

After Change


            optimizer.zero_grad()
            output = model(train_x)
            loss = -mll(output, train_y)
            loss = loss.sum()
            loss.backward()
            optimizer.step()

        for param in model.parameters():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: 254fe1c943375153033ce020efbd73c7893094c8
Time: 2019-02-01
Author: balandat@fb.com
File Name: test/examples/test_whitened_svgp_gp_regression.py
Class Name: TestSVGPRegression
Method Name: test_regression_error


Project Name: geomstats/geomstats
Commit Name: a1dd11c68e5911f069a747c917e2a4bfdd5ae4f4
Time: 2020-04-08
Author: hadizaatiti@gmail.com
File Name: geomstats/learning/em_expectation_maximization.py
Class Name: RiemannianEM
Method Name: update_variances


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: bd298684614646d8f0db5a6597ef88b8d662e25e
Time: 2020-02-21
Author: M.N.Tran@ibm.com
File Name: tests/defences/test_distillation.py
Class Name: TestDistillationVectors
Method Name: test_keras_iris