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

Before Change


    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)

    iterator_config = config["dataset_iterator"]

After Change


    dataset_config = config.get("dataset", None)

    if dataset_config:
        config.pop("dataset")
        ds_type = dataset_config["type"]
        if ds_type == "classification":
            reader = {"name": "basic_classification_reader"}
            iterator = {"name": "basic_classification_iterator"}
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

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: ray-project/ray
Commit Name: d192ef06119f3eccf569a844b30976db99cfa0f6
Time: 2020-03-10
Author: rliaw@berkeley.edu
File Name: python/ray/util/sgd/torch/training_operator.py
Class Name: TrainingOperator
Method Name: validate


Project Name: ray-project/ray
Commit Name: dc42abb2f5f7dd059cf6fac3eae2832931925573
Time: 2021-01-18
Author: krfricke@users.noreply.github.com
File Name: python/ray/tune/config_parser.py
Class Name:
Method Name: create_trial_from_spec


Project Name: ray-project/ray
Commit Name: d192ef06119f3eccf569a844b30976db99cfa0f6
Time: 2020-03-10
Author: rliaw@berkeley.edu
File Name: python/ray/util/sgd/torch/training_operator.py
Class Name: TrainingOperator
Method Name: train_epoch