a4217c8986523a59dd9b764467fc21b29dd572ba,train.py,,run,#Any#Any#Any#Any#Any#Any#,44

Before Change


    // Check if training dir exists
    assert os.path.isdir(train_images_dir)
    if eval_dir is not None:
        eval_images_dir, eval_labels_dir = os.path.join(eval_dir, "images"), os.path.join(eval_dir, "labels")
        assert os.path.isdir(eval_images_dir)

    for i in trange(0, training_params.n_epochs, training_params.evaluate_every_epoch, desc="Evaluated epochs"):
        // Train for one epoch

After Change


            assert os.path.isdir(eval_images_dir)
            filenames_evaluation = glob(os.path.join(eval_images_dir, "*.jpg")) \
                                   + glob(os.path.join(eval_images_dir, "*.png"))
    elif os.path.isfile(train_dir_or_csv):
        train_input = train_dir_or_csv
        train_labels_input = None
        eval_input = eval_dir_or_csv
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: dhlab-epfl/dhSegment
Commit Name: a4217c8986523a59dd9b764467fc21b29dd572ba
Time: 2018-08-31
Author: sofia.oliveiraares@epfl.ch
File Name: train.py
Class Name:
Method Name: run


Project Name: danforthcenter/plantcv
Commit Name: 934b0e505169c80fb0e068aa45add2277ee2b721
Time: 2016-04-25
Author: noahfahlgren@gmail.com
File Name: lib/plantcv/analyze_NIR_intensity.py
Class Name:
Method Name: analyze_NIR_intensity


Project Name: scikit-image/scikit-image
Commit Name: b90d0b505ac9ae8f51b85058635c063b896566f6
Time: 2016-04-06
Author: orion@cora.nwra.com
File Name: skimage/_build.py
Class Name:
Method Name: cython