3162e475ad96caa7e62a6351544fac23e148ab30,niftynet/engine/sampler_selective.py,,candidate_indices,#Any#Any#Any#,126

Before Change


                list_counts.append(valid_places)
        print(len(list_counts))
        for i in range(0, len(list_counts)):
            print(final.shape, list_counts[i].shape, np.max(final), np.max(
                list_counts[i]))
            final += list_counts[i]
        print("initialising candidates", num_labels_add)
        candidates = np.zeros_like(data, dtype=np.int32)

After Change


def candidate_indices(win_sizes, data, constraint):
    unique = np.unique(np.round(data))
    list_labels = []
    data = np.round(data)
    if constraint.list_labels is not None:
        list_labels = constraint.list_labels
        for label in constraint.list_labels:
            if label not in unique:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: NifTK/NiftyNet
Commit Name: 3162e475ad96caa7e62a6351544fac23e148ab30
Time: 2017-09-16
Author: carole.sudre.12@ucl.ac.uk
File Name: niftynet/engine/sampler_selective.py
Class Name:
Method Name: candidate_indices


Project Name: pfnet/optuna
Commit Name: a74615d997dec162f014ade0df0e9827fdaa451e
Time: 2020-02-29
Author: hayata.pri.yamamoto@gmail.com
File Name: optuna/integration/cma.py
Class Name: _Optimizer
Method Name: _to_optuna_params


Project Name: rtavenar/tslearn
Commit Name: 0537b722ea3bd3740ebb53226214cd67d92f2913
Time: 2019-05-28
Author: johann.faouzi@icm-institute.org
File Name: tslearn/metrics.py
Class Name:
Method Name: itakura_mask


Project Name: dPys/PyNets
Commit Name: 449ce796e6f506a28075f16099c986e298141569
Time: 2017-11-12
Author: dpisner@utexas.edu
File Name: pynets/nodemaker.py
Class Name:
Method Name: gen_network_parcels