f0b8fba7700a5e2a56b0d57af696118865e4b009,tests/extensions_tests/detection_tests/test_detection_vis_report.py,TestDetectionVisReport,setUp,#TestDetectionVisReport#,29
Before Change
model = ConstantStubLink((
np.random.uniform(size=(1,) + self.bbox_shape).astype(np.float32),
np.random.uniform(size=(1,) + self.label_shape).astype(np.int32)))
dataset = TupleDataset(
np.random.uniform(size=(100, 3, 10, 10)).astype(np.float32),
np.random.uniform(
After Change
self.trainer.updater.iteration = 0
self.link = _RandomDetectionStubLink()
self.dataset = TupleDataset(
np.random.uniform(size=(10, 3, 32, 48)),
np.random.uniform(size=(10, 5, 4)),
np.random.randint(0, 19, size=(10, 5)))
def test_available(self):
self.extension = DetectionVisReport(self.dataset, self.link)
self.assertEqual(self.extension.available(), optional_modules)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: chainer/chainercv
Commit Name: f0b8fba7700a5e2a56b0d57af696118865e4b009
Time: 2017-05-04
Author: Hakuyume@users.noreply.github.com
File Name: tests/extensions_tests/detection_tests/test_detection_vis_report.py
Class Name: TestDetectionVisReport
Method Name: setUp
Project Name: chainer/chainer
Commit Name: 990922266fc6f265c8bb0dfa9e45af827d57bf02
Time: 2019-10-31
Author: niboshi000@gmail.com
File Name: tests/chainerx_tests/unit_tests/routines_tests/test_indexing.py
Class Name:
Method Name: _random_condition
Project Name: reinforceio/tensorforce
Commit Name: 0fb1d0ea46ed2060a77db305cb801802828b20a7
Time: 2017-01-03
Author: k@ifricke.com
File Name: tensorforce/tests/test_memoryagent.py
Class Name:
Method Name: test_memoryagent_update_frequency