ebae4ed91a657b1eac389a6d380c165a295cd822,tests/layers/losses/test_rcnn.py,TestRCNN,test_call,#TestRCNN#,7

Before Change


        scores = numpy.random.choice(range(classes), (2,))

        target_deltas = keras.backend.ones((1, 2, 4 * classes))
        target_scores = keras.utils.to_categorical(scores)
        target_scores = keras.backend.expand_dims(target_scores, 0)
        target_scores = keras.backend.cast(target_scores, keras.backend.floatx())

        output_deltas = keras.backend.ones((1, 2, 4 * classes))
        output_scores = keras.utils.to_categorical(scores)
        output_scores = keras.backend.expand_dims(output_scores, 0)
        output_scores = keras.backend.cast(output_scores, keras.backend.floatx())

        layer = keras_rcnn.layers.RCNN()

After Change


        classes = 3

        target_deltas = keras.backend.ones((1, 2, 4 * classes))
        target_scores = keras.backend.variable([[0, 0, 1], [0, 0, 1]])
        target_scores = keras.backend.expand_dims(target_scores, 0)
        target_scores = keras.backend.cast(target_scores, keras.backend.floatx())
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: broadinstitute/keras-rcnn
Commit Name: ebae4ed91a657b1eac389a6d380c165a295cd822
Time: 2018-01-30
Author: allen.goodman@icloud.com
File Name: tests/layers/losses/test_rcnn.py
Class Name: TestRCNN
Method Name: test_call


Project Name: broadinstitute/keras-rcnn
Commit Name: ebae4ed91a657b1eac389a6d380c165a295cd822
Time: 2018-01-30
Author: allen.goodman@icloud.com
File Name: tests/layers/losses/test_rcnn.py
Class Name: TestRCNN
Method Name: test_call


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 1aff940e60d7d62bd82ddf7469e666197832e212
Time: 2017-05-11
Author: valentina.zantedeschi@ibm.com
File Name: src/classifiers/cnn_unittest.py
Class Name: TestCNNModel
Method Name: test_mnist


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 1aff940e60d7d62bd82ddf7469e666197832e212
Time: 2017-05-11
Author: valentina.zantedeschi@ibm.com
File Name: src/classifiers/cnn_unittest.py
Class Name: TestCNNModel
Method Name: test_cifar