355e7e769a0898e941a4962459f307bcd7a1ae62,src/tasks.py,MultiNLITask,get_metrics,#MultiNLITask#Any#,212

Before Change



    def get_metrics(self, reset=False):
        """ No F1 """
        return {"accuracy": self.scorer1.get_metric(reset)}

class MRPCTask(PairClassificationTask):
    """ Task class for Microsoft Research Paraphase Task.  """

After Change



    def get_metrics(self, reset=False):
        """Get metrics specific to the task"""
        ppl = self.scorer1.get_metric(reset)
        return {"perplexity": ppl}

class WikiTextLMTask(LanguageModelingTask):
    """ Language modeling task on Wikitext """
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: jsalt18-sentence-repl/jiant
Commit Name: 355e7e769a0898e941a4962459f307bcd7a1ae62
Time: 2018-06-18
Author: wang.alex.c@gmail.com
File Name: src/tasks.py
Class Name: MultiNLITask
Method Name: get_metrics


Project Name: jsalt18-sentence-repl/jiant
Commit Name: 355e7e769a0898e941a4962459f307bcd7a1ae62
Time: 2018-06-18
Author: wang.alex.c@gmail.com
File Name: src/tasks.py
Class Name: STSBTask
Method Name: get_metrics


Project Name: ecs-vlc/torchbearer
Commit Name: d73f5cd3d32ac96bc76fab6580da10164cb058a2
Time: 2020-02-17
Author: mp2u16@soton.ac.uk
File Name: torchbearer/callbacks/torch_scheduler.py
Class Name: TorchScheduler
Method Name: on_end_epoch


Project Name: ecs-vlc/torchbearer
Commit Name: d73f5cd3d32ac96bc76fab6580da10164cb058a2
Time: 2020-02-17
Author: mp2u16@soton.ac.uk
File Name: torchbearer/callbacks/torch_scheduler.py
Class Name: TorchScheduler
Method Name: on_step_training


Project Name: allenai/allennlp
Commit Name: 360df7f0920b6f7585c978ea75f71d81a0283250
Time: 2017-09-14
Author: mattg@allenai.org
File Name: allennlp/models/bidaf.py
Class Name: BidirectionalAttentionFlow
Method Name: get_metrics


Project Name: jsalt18-sentence-repl/jiant
Commit Name: 355e7e769a0898e941a4962459f307bcd7a1ae62
Time: 2018-06-18
Author: wang.alex.c@gmail.com
File Name: src/tasks.py
Class Name: SNLITask
Method Name: get_metrics