504d63d25cfd42e650834d8db6d976103e5f4baa,autokeras/preprocessor.py,DataTransformer,transform_test,#DataTransformer#Any#Any#Any#,76

Before Change


        common_list = [Normalize(torch.Tensor(self.mean), torch.Tensor(self.std))]
        compose_list = common_list

        return self._transform(batch_size, compose_list, data, targets)

    def _transform(self, batch_size, compose_list, data, targets):
        if batch_size is None:
            batch_size = Constant.MAX_BATCH_SIZE

After Change


        common_list = [Normalize(torch.Tensor(self.mean), torch.Tensor(self.std))]
        compose_list = common_list

        dataset = self._transform(compose_list, data, targets)

        if batch_size is None:
            batch_size = Constant.MAX_BATCH_SIZE
        batch_size = min(len(data), batch_size)

        return DataLoader(dataset, batch_size=batch_size, shuffle=False)

    def _transform(self, compose_list, data, targets):
        data = data / self.max_val
        data = torch.Tensor(data.transpose(0, 3, 1, 2))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 8

Non-data size: 15

Instances


Project Name: jhfjhfj1/autokeras
Commit Name: 504d63d25cfd42e650834d8db6d976103e5f4baa
Time: 2018-09-03
Author: jhfjhfj1@gmail.com
File Name: autokeras/preprocessor.py
Class Name: DataTransformer
Method Name: transform_test


Project Name: keras-team/autokeras
Commit Name: 38d2330cfed8c2b8df60ac86709d02e2aa0468c2
Time: 2018-08-31
Author: jhfjhfj1@gmail.com
File Name: autokeras/preprocessor.py
Class Name: DataTransformer
Method Name: transform_train


Project Name: jhfjhfj1/autokeras
Commit Name: 38d2330cfed8c2b8df60ac86709d02e2aa0468c2
Time: 2018-08-31
Author: jhfjhfj1@gmail.com
File Name: autokeras/preprocessor.py
Class Name: DataTransformer
Method Name: transform_test


Project Name: keras-team/autokeras
Commit Name: 504d63d25cfd42e650834d8db6d976103e5f4baa
Time: 2018-09-03
Author: jhfjhfj1@gmail.com
File Name: autokeras/preprocessor.py
Class Name: DataTransformer
Method Name: transform_train


Project Name: keras-team/autokeras
Commit Name: 504d63d25cfd42e650834d8db6d976103e5f4baa
Time: 2018-09-03
Author: jhfjhfj1@gmail.com
File Name: autokeras/preprocessor.py
Class Name: DataTransformer
Method Name: transform_test