53a93d8af5d041f6c5dfdef2fb763f8419e3023d,matchzoo/datasets/snli/load_data.py,,load_data,#Any#Any#Any#,14
Before Change
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):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
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: biocore/scikit-bio
Commit Name: c8fc3b5948f9d356cac1e27240fe531437c2d908
Time: 2015-10-06
Author: kestrel.gorlick@gmail.com
File Name: skbio/io/format/blast6.py
Class Name:
Method Name: _blast6_to_data_frame
Project Name: biocore/scikit-bio
Commit Name: 95ae997f265381950b8597ab6636574564e7ef01
Time: 2015-10-07
Author: kestrel.gorlick@gmail.com
File Name: skbio/io/format/blast6.py
Class Name:
Method Name: _blast6_to_data_frame