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

Before Change


    def test_call(self):
        classes = 3

        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)

After Change


        target_scores = keras.backend.cast(target_scores, keras.backend.floatx())

        output_deltas = keras.backend.ones((1, 2, 4 * classes))
        output_scores = keras.backend.variable([[0, 0, 1], [0, 0, 1]])
        output_scores = keras.backend.expand_dims(output_scores, 0)
        output_scores = keras.backend.cast(output_scores, keras.backend.floatx())

        layer = keras_rcnn.layers.RCNN()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: hyperopt/hyperopt-sklearn
Commit Name: c7eedbd86349ee56a1d816a4e54dc031382da305
Time: 2016-07-22
Author: chandlerx.watson@intel.com
File Name: hpsklearn/components.py
Class Name:
Method Name: linear_discriminant_analysis


Project Name: arjo129/uSpeech
Commit Name: fcd5699ca00e07ee52cfe3527b6ce66f8fb509e2
Time: 2017-06-08
Author: arjo129@gmail.com
File Name: models/ui.py
Class Name: UI
Method Name: update_graph