a40e9a6f1400e15076cfed54c33bf556cec8cd28,luminoth/models/fasterrcnn/rcnn_target_test.py,RCNNTargetTest,testMultipleOverlap,#RCNNTargetTest#,102
Before Change
proposed_boxes)
// Assertions
not_ignored_number = 0
for i, label in enumerate(proposals_label):
if label >= 1:
not_ignored_number += 1
self.assertIn(i, [1, 2, 3, 5])
self.assertEqual(not_ignored_number, 1)
if __name__ == "__main__":
After Change
np.ceil(self._config.minibatch_size * foreground_fraction),
delta=self._equality_delta)
foreground_idxs = np.nonzero(proposals_label >= 1)[0]
for foreground_idx in foreground_idxs:
self.assertIn(foreground_idx, [2, 3, 4, 7])
def testOddMinibatchSize(self):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: tryolabs/luminoth
Commit Name: a40e9a6f1400e15076cfed54c33bf556cec8cd28
Time: 2017-08-11
Author: iangtayler@gmail.com
File Name: luminoth/models/fasterrcnn/rcnn_target_test.py
Class Name: RCNNTargetTest
Method Name: testMultipleOverlap
Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 70c3efbc796b13121395468ca6fe50e5fdc3570e
Time: 2018-02-02
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/simulation/plotting.py
Class Name:
Method Name: plot_spiketrains
Project Name: dit/dit
Commit Name: a1890b56835ef626b1a32edcaf28c1e2b10baa48
Time: 2015-03-19
Author: chebee7i@gmail.com
File Name: dit/algorithms/maxentropyfw.py
Class Name:
Method Name: isolate_zeros