6273d5bcf7292ca77d7730bcd7102655f7c3bb82,tensorforce/tests/test_preprocessing.py,TestPreprocessing,test_preprocessing_grayscale,#TestPreprocessing#,47
Before Change
pp = tensorforce.core.preprocessing.grayscale.Grayscale()
shape = list(np.random.randint(1, 8, size=2)) + [3]
processed_state, processed_shape = self._test_preprocessing_shape(pp, shape, tuple(shape[0:2]))
After Change
def test_preprocessing_grayscale(self):
grayscale = Grayscale()
shape = (randint(1, 64), randint(1, 64), 3)
state = np.random.randint(0, 256, shape)
self.assertEqual(grayscale.processed_shape(shape), (shape[0], shape[1], 1))
self.assertEqual(grayscale.process(state).shape, grayscale.processed_shape(shape))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: reinforceio/tensorforce
Commit Name: 6273d5bcf7292ca77d7730bcd7102655f7c3bb82
Time: 2017-06-25
Author: aok25@cl.cam.ac.uk
File Name: tensorforce/tests/test_preprocessing.py
Class Name: TestPreprocessing
Method Name: test_preprocessing_grayscale
Project Name: rail-berkeley/softlearning
Commit Name: 7598ecf4372ef1b58fd57f0a42121b53c99a9d77
Time: 2018-05-22
Author: kristian.hartikainen@gmail.com
File Name: examples/mujoco_all_sac_real_nvp_hierarchy.py
Class Name:
Method Name:
Project Name: daavoo/pyntcloud
Commit Name: 59ec6660464bd378b20d4ae200c7614133a9a38b
Time: 2019-08-26
Author: hc.wang96@gmail.com
File Name: pyntcloud/samplers/points.py
Class Name: FarthestPointsSampler
Method Name: compute