78af1378c55637a88c63019b3b8dbdd5379c5a20,tests/extensions_tests/evaluator_tests/test_instance_segmentation_voc_evaluator.py,TestInstanceSegmentationVOCEvaluator,test_evaluate,#TestInstanceSegmentationVOCEvaluator#,86
Before Change
np.testing.assert_equal(mean["target/ap/cls2"], np.nan)
def test_evaluate(self):
self._check_evaluate()
@attr.mpi
def test_evaluate_with_comm(self):
comm = create_communicator("naive")
After Change
self.iterator, self.link, label_names=("cls0", "cls1", "cls2"))
self.expected_ap = 1
def test_evaluate(self):
reporter = chainer.Reporter()
reporter.add_observer("target", self.link)
with reporter:
mean = self.evaluator.evaluate()
// No observation is reported to the current reporter. Instead the
// evaluator collect results in order to calculate their mean.
self.assertEqual(len(reporter.observation), 0)
np.testing.assert_equal(mean["target/map"], self.expected_ap)
np.testing.assert_equal(mean["target/ap/cls0"], np.nan)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 10
Instances
Project Name: chainer/chainercv
Commit Name: 78af1378c55637a88c63019b3b8dbdd5379c5a20
Time: 2019-05-28
Author: yuyuniitani@gmail.com
File Name: tests/extensions_tests/evaluator_tests/test_instance_segmentation_voc_evaluator.py
Class Name: TestInstanceSegmentationVOCEvaluator
Method Name: test_evaluate
Project Name: chainer/chainercv
Commit Name: 78af1378c55637a88c63019b3b8dbdd5379c5a20
Time: 2019-05-28
Author: yuyuniitani@gmail.com
File Name: tests/extensions_tests/evaluator_tests/test_instance_segmentation_coco_evaluator.py
Class Name: TestInstanceSegmentationCOCOEvaluator
Method Name: test_evaluate
Project Name: chainer/chainercv
Commit Name: 78af1378c55637a88c63019b3b8dbdd5379c5a20
Time: 2019-05-28
Author: yuyuniitani@gmail.com
File Name: tests/extensions_tests/evaluator_tests/test_detection_voc_evaluator.py
Class Name: TestDetectionVOCEvaluator
Method Name: test_evaluate
Project Name: chainer/chainercv
Commit Name: 78af1378c55637a88c63019b3b8dbdd5379c5a20
Time: 2019-05-28
Author: yuyuniitani@gmail.com
File Name: tests/extensions_tests/evaluator_tests/test_semantic_segmentation_evaluator.py
Class Name: TestSemanticSegmentationEvaluator
Method Name: test_evaluate