2a094e6fb2c8563e72f5b5a703951e5edcc673f3,train.py,,,#,444

Before Change



    // TODO: better way
    lengths = []
    for i in tqdm(range(len(X))):
        lengths.append(X[i].shape[0])
    lengths = np.array(lengths)

    // Prepare sampler
    sampler = PartialyRandomizedSimilarTimeLengthSampler(

After Change


    X = FileSourceDataset(RawAudioDataSource(data_root, speaker_id))
    if local_conditioning:
        Mel = FileSourceDataset(MelSpecDataSource(data_root, speaker_id))
        assert len(X) == len(Mel)
    else:
        Mel = None
    print(len(X))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: r9y9/wavenet_vocoder
Commit Name: 2a094e6fb2c8563e72f5b5a703951e5edcc673f3
Time: 2017-12-31
Author: zryuichi@gmail.com
File Name: train.py
Class Name:
Method Name:


Project Name: AIRLab-POLIMI/mushroom
Commit Name: 9e781f9da44c12822aaa5066d058e33d2700555f
Time: 2017-11-16
Author: carloderamo@gmail.com
File Name: mushroom/core/core.py
Class Name: Core
Method Name: learn


Project Name: EpistasisLab/tpot
Commit Name: 5edcbd062bf338ded7707655dbf1b8a45eb700a9
Time: 2016-05-31
Author: supacoofoo@gmail.com
File Name: tests.py
Class Name:
Method Name: test_score