25508c13627f06510f3cab96d742360b0187640a,tests/windows_aggregator_grid_v2_test.py,GridSamplesAggregatorTest,test_init_2d_mo,#GridSamplesAggregatorTest#,413

Before Change


            sampler.set_num_threads(2)
            while more_batch:
                out = sess.run(sampler.pop_batch_op())
                min_val = np.sum((np.asarray(out["image"]).flatten()))
                stats_val = [np.min(out), np.max(out), np.sum(out)]
                more_batch = aggregator.decode_batch(
                    {"window_image":out["image"], "csv_sum":min_val},

After Change


            while more_batch:
                out = sess.run(sampler.pop_batch_op())
                out_flatten = np.reshape(np.asarray(out["image"]), [10, -1])
                min_val = np.sum(np.reshape(np.asarray(out["image"]),
                                             [10,-1]),1)
                stats_val = np.concatenate([np.min(out_flatten,1,
                                                   keepdims=True), np.max(
                    out_flatten, 1,keepdims=True), np.sum(
                    out_flatten,1,keepdims=True)],1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: NifTK/NiftyNet
Commit Name: 25508c13627f06510f3cab96d742360b0187640a
Time: 2019-06-29
Author: carole.sudre@kcl.ac.uk
File Name: tests/windows_aggregator_grid_v2_test.py
Class Name: GridSamplesAggregatorTest
Method Name: test_init_2d_mo


Project Name: NifTK/NiftyNet
Commit Name: 16120dfa28abb4ee21d6beb04bf235633e413bfa
Time: 2019-06-08
Author: carole.sudre@kcl.ac.uk
File Name: tests/windows_aggregator_grid_v2_test.py
Class Name: GridSamplesAggregatorTest
Method Name: test_init_2d_mo


Project Name: jfkirk/tensorrec
Commit Name: 3d1aa2b3c76ff596b0e6d89263ac740c29ced44e
Time: 2018-03-03
Author: james.f.kirk@gmail.com
File Name: tensorrec/eval.py
Class Name:
Method Name: ndcg_at_k


Project Name: onnx/onnx-tensorflow
Commit Name: 42cf810d07249d2506a7d3b5ce4baa8870d2b0c9
Time: 2018-01-09
Author: contact@lucasmahieu.fr
File Name: onnx_tf/frontend.py
Class Name: TensorflowFrontend
Method Name: handle_pad