16120dfa28abb4ee21d6beb04bf235633e413bfa,tests/windows_aggregator_grid_v2_test.py,GridSamplesAggregatorTest,test_init_2d_mo,#GridSamplesAggregatorTest#,412

Before Change


            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},
                    out["image_location"])

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)
                more_batch = aggregator.decode_batch(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


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: sao-eht/eat
Commit Name: 3e8ffe84cdb982ccfb3980c350ddf6ce64fbe46d
Time: 2018-08-28
Author: maciek.wielgus@gmail.com
File Name: eat/inspect/plots.py
Class Name:
Method Name: err_nights_time_cphase_2x2


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