c6c9864bd5be1822892e71f640dc71e28ef512ab,src/codebase/tasks.py,RTETask,load_data,#RTETask#Any#Any#,743

Before Change


        tr_data = sort_data(sents1[split_pt:], sents2[split_pt:], targs[split_pt:])
        val_data = sort_data(sents1[:split_pt], sents2[:split_pt], targs[:split_pt])

        sents1, sents2, targs = reformat(test_data)
        te_data = sort_data(sents1, sents2, targs)

        unpack = lambda x: [l for l in map(list, zip(*x))]

After Change



        // need to shuffle the data
        dev_sents1, dev_sents2, dev_targs = load_files([os.path.join(path, dev) for dev in devs])
        te_sents1, te_sents2, te_targs = load_files([os.path.join(path, test) for test in tests])

        n_exs = len(dev_sents1)
        split_pt = int(.2 * n_exs)
        tmp = list(zip(dev_sents1, dev_sents2, dev_targs))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: jsalt18-sentence-repl/jiant
Commit Name: c6c9864bd5be1822892e71f640dc71e28ef512ab
Time: 2017-12-11
Author: wang.alex.c@gmail.com
File Name: src/codebase/tasks.py
Class Name: RTETask
Method Name: load_data


Project Name: jhfjhfj1/autokeras
Commit Name: 5b8864d1863ac0474db8b657f023341686f4b1fb
Time: 2020-09-24
Author: jhfjhfj1@gmail.com
File Name: benchmark/imdb.py
Class Name:
Method Name: imdb_raw