2d52dc9292ffcd084125507241db6170e18ac629,main.py,,main,#Any#,90

Before Change


        val_results, _ = evaluate(model, tasks, args.batch_size, args.cuda, "val")
        if args.write_preds:
            if len(tasks) == 1 and isinstance(tasks[0], NLITypeProbingTask):
                _, te_preds = evaluate(model, tasks, args.batch_size, args.cuda, "val")
            else:
                _, te_preds = evaluate(model, tasks, args.batch_size, args.cuda, "test")
            write_preds(te_preds, args.run_dir)

After Change


        if "val" in splits_to_write:
            evaluate.write_preds(val_preds, args.run_dir, "val",
                                 strict_glue_format=args.write_strict_glue_format)
        if "test" in splits_to_write:
            _, te_preds = evaluate.evaluate(model, tasks,
                                            args.batch_size, args.cuda, "test")
            evaluate.write_preds(te_preds, args.run_dir, "test",
                                 strict_glue_format=args.write_strict_glue_format)
        run_name = args.get("run_name", os.path.basename(args.run_dir))
        evaluate.write_results(val_results, os.path.join(args.exp_dir, "results.tsv"),
                               run_name=run_name)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: jsalt18-sentence-repl/jiant
Commit Name: 2d52dc9292ffcd084125507241db6170e18ac629
Time: 2018-07-19
Author: jan.hula@osu.cz
File Name: main.py
Class Name:
Method Name: main


Project Name: lingpy/lingpy
Commit Name: 6b91fed62fe1e4c5696cf085c0a3db97411e8829
Time: 2013-10-24
Author: mattis.list@posteo.de
File Name: lingpy/read/csv.py
Class Name:
Method Name: read_asjp


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: f8a5a458ff6a35e91ae9d705160d73cdcc8adf97
Time: 2017-05-31
Author: valentina.zantedeschi@ibm.com
File Name: test.py
Class Name:
Method Name: