25508c13627f06510f3cab96d742360b0187640a,tests/windows_aggregator_grid_v2_test.py,GridSamplesAggregatorTest,test_init_2d_mo,#GridSamplesAggregatorTest#,413
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
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(
{"window_image":out["image"], "csv_sum":min_val},
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
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: rasbt/mlxtend
Commit Name: 967e77866ca63db25f5b688db4be5d55480a1102
Time: 2016-07-13
Author: mail@sebastianraschka.com
File Name: mlxtend/classifier/softmax_regression.py
Class Name: SoftmaxRegression
Method Name: _softmax
Project Name: rasbt/mlxtend
Commit Name: 967e77866ca63db25f5b688db4be5d55480a1102
Time: 2016-07-13
Author: mail@sebastianraschka.com
File Name: mlxtend/classifier/multilayerperceptron.py
Class Name: MultiLayerPerceptron
Method Name: _softmax