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

Before Change


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

    if dataset_config is not None:
        del config["dataset"]
        ds_type = dataset_config["type"]
        if ds_type == "classification":
            reader = {"name": "basic_classification_reader"}
            iterator = {"name": "basic_classification_iterator"}

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"]
    dataset: BasicDatasetIterator = from_params(iterator_config, data=data)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

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: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 983aedb23057629605c8a7c8d9757945651d48f5
Time: 2015-03-27
Author: yuyantingzero@gmail.com
File Name: perfkitbenchmarker/packages/fio.py
Class Name:
Method Name: ParseJobFile


Project Name: deepfakes/faceswap
Commit Name: 3159cb6eca130e9b6e2de7762abab1c173923007
Time: 2019-08-28
Author: 36920800+torzdf@users.noreply.github.com
File Name: lib/gui/command.py
Class Name: CommandTab
Method Name: build_tab


Project Name: WZBSocialScienceCenter/tmtoolkit
Commit Name: ae31aae6d83ed1647cf0d683290f50de3bc29f61
Time: 2020-01-30
Author: markus.konrad@wzb.eu
File Name: tmtoolkit/preprocess/_preprocworker.py
Class Name: PreprocWorker
Method Name: _task_set_state