01c2aa38bde1f3b97360204cae96076db04c9c95,tests/test_transforms.py,TransformTests,prepare,#TransformTests#,28

Before Change


        transforms = []
        for transform in gpflow.transforms.Transform.__subclasses__():
            if transform != gpflow.transforms.LowerTriangular:
                transforms.append(transform())
            else:
                transforms.append(transform(4))
        //self.transforms = [C() for C in gpflow.transforms.Transform.__subclasses__()]

After Change


        x_np = np.random.randn(10).astype(settings.np_float)
        transforms = []
        for transform_class in gpflow.transforms.Transform.__subclasses__():
            if transform_class == Chain:
                continue  // Chain transform cannot be tested on its own
            if transform_class == gpflow.transforms.LowerTriangular:
                transforms.append(transform_class(4))
            else:
                transform = transform_class()
                transforms.append(transform)
                transforms.append(Chain(Identity(), transform))
                transforms.append(Chain(transform, Identity()))
        //self.transforms = [C() for C in gpflow.transforms.Transform.__subclasses__()]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: GPflow/GPflow
Commit Name: 01c2aa38bde1f3b97360204cae96076db04c9c95
Time: 2017-11-23
Author: st--@users.noreply.github.com
File Name: tests/test_transforms.py
Class Name: TransformTests
Method Name: prepare


Project Name: GPflow/GPflow
Commit Name: edbc2890efb8a8842125b484de667c0343e7eb63
Time: 2017-11-23
Author: st@prowler.io
File Name: tests/test_transforms.py
Class Name: TransformTests
Method Name: prepare


Project Name: keras-team/autokeras
Commit Name: 71432d1890209628e189edf04d7d623160943718
Time: 2019-12-18
Author: 33369174+Davidsirui@users.noreply.github.com
File Name: autokeras/hypermodel/preprocessor.py
Class Name: TextToNgramVector
Method Name: transform