ad66bf0a8faf1f230891faea92c31d8a3a0baa3f,niftynet/engine/sampler_selective.py,,candidate_indices,#Any#Any#Any#,112
Before Change
seg_label = np.copy(data)
seg_label = np.asarray(seg_label, dtype=np.int32)
// print(np.sum(seg_label))
seg_label = np.where(seg_label == value, np.ones_like(data) ,
np.zeros_like(data))
// print(np.sum(seg_label), " num values in seg_label ", value)
label_size = create_label_size_map(seg_label, 1)
After Change
for value in unique:
// print(np.sum(data), "sum in data", np.prod(data.shape),
// " elements in data")
seg_label = (data == value).astype(data.dtype)
// print(np.sum(seg_label), " num values in seg_label ", value)
label_size = create_label_size_map(seg_label)
// print(value, np.sum(seg_label), seg_label.shape,
// window_ones.shape, num_min)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: NifTK/NiftyNet
Commit Name: ad66bf0a8faf1f230891faea92c31d8a3a0baa3f
Time: 2017-10-04
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/sampler_selective.py
Class Name:
Method Name: candidate_indices
Project Name: NifTK/NiftyNet
Commit Name: ad66bf0a8faf1f230891faea92c31d8a3a0baa3f
Time: 2017-10-04
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/sampler_selective.py
Class Name:
Method Name: create_probability_weights
Project Name: dmlc/gluon-nlp
Commit Name: 1f9ad444b5dee8b2562b7bfa1cf9f576fa32a347
Time: 2020-07-31
Author: 37728728+ZheyuYe@users.noreply.github.com
File Name: src/gluonnlp/op.py
Class Name:
Method Name: updated_vectors_by_position