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


            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__()]
        transforms.append(gpflow.transforms.Logistic(7.3, 19.4))
        transforms.append(gpflow.transforms.positive(gpflow.transforms.Rescale(9.5)))  // test __call__() and chaining
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: deepchem/deepchem
Commit Name: 1b18b95edefbd4c3ede234495f9d07d1d61e2ce5
Time: 2016-02-17
Author: bharath.ramsundar@gmail.com
File Name: deepchem/utils/test/test_api.py
Class Name: TestAPI
Method Name: _featurize_train_test_split


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