c8b28432a637a780eed96547260722ff3dede57e,niftynet/engine/sampler_selective.py,,rand_choice_coordinates,#Any#Any#Any#Any#Any#Any#,350
Before Change
// print(np.sum(candidates), list_indices)
// print(len(candidates_indices), candidates_indices.shape)
if mean_counts_size is not None:
print("Probability weighting considered")
proba = []
for (c, p) in zip(candidates.flatten(), mean_counts_size.flatten()):
if c >= 1:
proba.append(p)
After Change
spatial_win_sizes = np.asarray(spatial_win_sizes, dtype=np.int32)
max_spatial_win = np.max(spatial_win_sizes, axis=0)
for i in range(0, N_SPATIAL):
assert uniq_spatial_size[i] >= max_spatial_win[i], \
"window size {} is larger than image size {}".format(
max_spatial_win[i], uniq_spatial_size[i])
// randomly choose n_samples from candidate locations
candidates_indices = np.vstack(np.where(candidates == 1)).T
list_indices_fin = np.arange(len(candidates_indices))
In pattern: SUPERPATTERN
Frequency: 8
Non-data size: 2
Instances Project Name: NifTK/NiftyNet
Commit Name: c8b28432a637a780eed96547260722ff3dede57e
Time: 2017-10-04
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/sampler_selective.py
Class Name:
Method Name: rand_choice_coordinates
Project Name: ray-project/ray
Commit Name: baa053496a78bbb89279847277e49242f721af0e
Time: 2020-05-26
Author: sven@anyscale.io
File Name: rllib/tests/run_regression_tests.py
Class Name:
Method Name:
Project Name: ray-project/ray
Commit Name: 414041c6dd3e2361a3cc9de1c646dd9114004fe8
Time: 2020-10-15
Author: sven@anyscale.io
File Name: rllib/utils/exploration/tests/test_curiosity.py
Class Name: TestCuriosity
Method Name: test_curiosity_on_large_frozen_lake
Project Name: keras-team/autokeras
Commit Name: 5297fa5355e4e55b31d6d37336d309349736302e
Time: 2018-06-27
Author: jhfjhfj1@gmail.com
File Name: tests/test_graph.py
Class Name:
Method Name: test_long_transform
Project Name: NifTK/NiftyNet
Commit Name: 10bc0692e66d8f4e66c69a868870eaaff801942b
Time: 2017-08-28
Author: wenqi.li@ucl.ac.uk
File Name: tests/application_driver_test.py
Class Name: ApplicationDriverTest
Method Name: test_app_stop
Project Name: maxpumperla/elephas
Commit Name: d0f18d2f18319f38039cde3e2948ceab2d56bb94
Time: 2020-12-31
Author: danielenricocahall@gmail.com
File Name: tests/test_mllib_model.py
Class Name:
Method Name: test_mllib_model
Project Name: streamlit/streamlit
Commit Name: 9e1113fa24e7240fa60baf288bdb828fdb1c680f
Time: 2019-03-26
Author: thiagot@gmail.com
File Name: lib/streamlit/__main__.py
Class Name:
Method Name: help
Project Name: streamlit/streamlit
Commit Name: 2f13ae902205c8eea6ed606a3795233cfa1507a4
Time: 2019-03-26
Author: thiagot@gmail.com
File Name: lib/streamlit/__main__.py
Class Name:
Method Name: help