27fc35ad8f8223736e053c5eb7fe30ce32f7d915,test/kernels/test_scale_kernel.py,TestScaleKernel,test_inherit_active_dims,#TestScaleKernel#,115

Before Change


        self.assertFalse(kernel.is_stationary)

    def test_inherit_active_dims(self):
        a = torch.tensor([[1, 2, 3], [2, 4, 5]], dtype=torch.float)
        b = torch.tensor([[1, 3, 6], [0, 4, 7]], dtype=torch.float)
        lengthscales = torch.tensor([1, 1], dtype=torch.float)

        base_kernel = RBFKernel(active_dims=(1, 2), ard_num_dims=2)

After Change


        kernel = ScaleKernel(base_kernel)
        kernel.initialize(outputscale=torch.tensor([3], dtype=torch.float))
        kernel.eval()
        self.assertTrue(torch.all(kernel.active_dims == base_kernel.active_dims))


if __name__ == "__main__":
    unittest.main()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: 27fc35ad8f8223736e053c5eb7fe30ce32f7d915
Time: 2020-04-07
Author: tomas.krehlik@gmail.com
File Name: test/kernels/test_scale_kernel.py
Class Name: TestScaleKernel
Method Name: test_inherit_active_dims


Project Name: cornellius-gp/gpytorch
Commit Name: 91b0d220c8e816766fd4565e1d2f5115d3afbefe
Time: 2018-10-12
Author: gpleiss@gmail.com
File Name: test/functions/test_inv_quad_log_det.py
Class Name: TestInvQuadLogDetBatch
Method Name: test_log_det_only


Project Name: pytorch/text
Commit Name: aa7176b583f29a61f4fa050d10ba5d57bf908986
Time: 2020-12-22
Author: 855818+mthrok@users.noreply.github.com
File Name: test/experimental/test_vectors.py
Class Name: TestVectors
Method Name: test_vectors_load_and_save