0a01df9bdc0bd142eff95a1c878947047194d617,deeppavlov/core/commands/train.py,,train_model_from_config,#Any#,72

Before Change


    reader_config = config["dataset_reader"]
    reader = get_model(reader_config["name"])()
    data_path = expand_path(reader_config.get("data_path", ""))
    kwargs = reader_config.copy()
    if "name" in kwargs: del kwargs["name"]
    if "data_path" in kwargs: del kwargs["data_path"]
    data = reader.read(data_path, **kwargs)

After Change


    reader_config = config["dataset_reader"]
    reader = get_model(reader_config["name"])()
    data_path = expand_path(reader_config.get("data_path", ""))
    kwargs = {k: v for k, v in reader_config.items() if k not in ["name", "data_path"]}
    data = reader.read(data_path, **kwargs)

    iterator_config = config["dataset_iterator"]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: 0a01df9bdc0bd142eff95a1c878947047194d617
Time: 2018-03-16
Author: ol.gure@gmail.com
File Name: deeppavlov/core/commands/train.py
Class Name:
Method Name: train_model_from_config


Project Name: wkentaro/labelme
Commit Name: da3fa111b0981d46cd071bf10a0dd4bcad1f60d4
Time: 2019-05-17
Author: 34230114+IlyaOvodov@users.noreply.github.com
File Name: labelme/widgets/canvas.py
Class Name: Canvas
Method Name: mouseMoveEvent


Project Name: NervanaSystems/coach
Commit Name: 67eb9e4c28098d93ac122d65833c20b22b7e86c7
Time: 2018-11-19
Author: sina.beh@gmail.com
File Name: rl_coach/architectures/mxnet_components/architecture.py
Class Name: MxnetArchitecture
Method Name: _dummy_model_inputs