caf7f0ae508bd8a5212d0ed5a928ad667c57efd8,data_utils.py,,generator_from_raw_dataset,#,328

Before Change


    if phase == "train":
        chorale_indices = np.arange(int(len(X) * percentage_train))
    if phase == "test":
        chorale_indices = np.arange(int(len(X) * percentage_train), len(X))
    if phase == "all":
        chorale_indices = np.arange(int(len(X)))

    left_features = []

After Change


    if phase == "all":
        chorale_indices = np.arange(total_size)

    assert len(chorale_indices) > 0, "The list of chorales for the phase "%s" must not be empty" % phase

    left_features = []
    right_features = []
    central_features = []
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: Ghadjeres/DeepBach
Commit Name: caf7f0ae508bd8a5212d0ed5a928ad667c57efd8
Time: 2017-07-12
Author: bohumir.zamecnik@gmail.com
File Name: data_utils.py
Class Name:
Method Name: generator_from_raw_dataset


Project Name: tensorflow/privacy
Commit Name: 2007aac912faadbf0ae3af206f3fa100284b8e23
Time: 2019-10-21
Author: schien@google.com
File Name: tensorflow_privacy/privacy/analysis/compute_dp_sgd_privacy.py
Class Name:
Method Name: main


Project Name: librosa/librosa
Commit Name: b82f10c8a2a87a61ff26772facc6a3de0f8bad6a
Time: 2015-07-02
Author: ebattenberg@gmail.com
File Name: librosa/core/constantq.py
Class Name:
Method Name: cqt