30a97dc7c5ae39a0e010f8c9d63714ade624f37c,src/pipelines.py,,preprocessing_train,#Any#Any#,116

Before Change


                                         },
                                cache_dirpath=config.env.cache_dirpath)

        loader = Step(name="loader",
                      transformer=ImageSegmentationLoader(**config.loader),
                      input_data=["specs"],
                      input_steps=[reader_train, reader_inference],
                      adapter={"X": ([("reader_train", "X")]),
                               "y": ([("reader_train", "y")]),
                               "train_mode": ([("specs", "train_mode")]),
                               "X_valid": ([("reader_inference", "X")]),
                               "y_valid": ([("reader_inference", "y")]),
                               },
                      cache_dirpath=config.env.cache_dirpath)
    else:
        xy_train = Step(name="xy_train",
                        transformer=XYSplit(**config.xy_splitter[model_name]),
                        input_data=["input", "specs"],

After Change




def preprocessing_train(config, model_name="unet"):
    if config.execution.loader_mode == "crop_and_pad":
        Loader = loaders.ImageSegmentationLoaderCropPad
    elif config.execution.loader_mode == "resize":
        Loader = loaders.ImageSegmentationLoaderResize
    else:
        raise NotImplementedError

    if config.loader.dataset_params.image_source == "memory":
        reader_train = Step(name="reader_train",
                            transformer=ImageReader(**config.reader[model_name]),
                            input_data=["input", "specs"],
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: minerva-ml/open-solution-data-science-bowl-2018
Commit Name: 30a97dc7c5ae39a0e010f8c9d63714ade624f37c
Time: 2018-06-28
Author: andrzej.pyskir@gmail.com
File Name: src/pipelines.py
Class Name:
Method Name: preprocessing_train


Project Name: minerva-ml/open-solution-data-science-bowl-2018
Commit Name: 30a97dc7c5ae39a0e010f8c9d63714ade624f37c
Time: 2018-06-28
Author: andrzej.pyskir@gmail.com
File Name: src/pipelines.py
Class Name:
Method Name: preprocessing_inference


Project Name: senarvi/theanolm
Commit Name: 0375cb0a69852f21f19c8568b4a37128d4407fc0
Time: 2016-04-12
Author: seppo.git@marjaniemi.com
File Name: theanolm/layers/networkinput.py
Class Name: NetworkInput
Method Name: __init__