53a93d8af5d041f6c5dfdef2fb763f8419e3023d,matchzoo/datasets/snli/load_data.py,,load_data,#Any#Any#Any#,14

Before Change


        task = matchzoo.tasks.Classification()

    if isinstance(task, matchzoo.tasks.Ranking):
        if target_label not in ["entailment", "contradiction", "neutral", "-"]:
            raise ValueError
        binary = (data_pack.relation["label"] == target_label).astype(float)
        data_pack.relation["label"] = binary
        return data_pack
    elif isinstance(task, matchzoo.tasks.Classification):

After Change



    data_root = _download_data()
    file_path = data_root.joinpath(f"snli_1.0_{stage}.txt")
    data_pack = _read_data(file_path)

    if task == "ranking":
        task = matchzoo.tasks.Ranking()
    if task == "classification":
        task = matchzoo.tasks.Classification()

    if isinstance(task, matchzoo.tasks.Ranking):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: NTMC-Community/MatchZoo
Commit Name: 53a93d8af5d041f6c5dfdef2fb763f8419e3023d
Time: 2019-01-19
Author: i@uduse.com
File Name: matchzoo/datasets/snli/load_data.py
Class Name:
Method Name: load_data


Project Name: hyperspy/hyperspy
Commit Name: 629167ee324a0b955ef46cd5a0cd7bb504ef8c44
Time: 2020-09-09
Author: tjof2@cam.ac.uk
File Name: hyperspy/tests/drawing/test_plot_signal1d.py
Class Name:
Method Name: _generate_filename_list


Project Name: mindsdb/mindsdb
Commit Name: 80ab5f2eb06c8023c6ba4b62c054ff04369913f8
Time: 2020-11-12
Author: stpmax@yandex.ru
File Name: tests/integration_tests/flows/test_mongo.py
Class Name: MongoTest
Method Name: setUpClass