Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Specify ACUTE-Eval analyzer type (#3781)
Browse files Browse the repository at this point in the history
  • Loading branch information
EricMichaelSmith authored Jul 13, 2021
1 parent 69a9868 commit 85e9cba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion parlai/crowdsourcing/tasks/acute_eval/fast_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ class FastAcuteExecutor(object):
Execute fast ACUTE runs.
"""

ANALYZER = AcuteAnalyzer

def __init__(self, args: DictConfig, model_config: Optional[Dict[str, Any]] = None):
"""
Pass in model_config directly to override the model config file,
Expand Down Expand Up @@ -532,7 +534,7 @@ def analyze_results(self, args: Optional[str] = None):
}
)

analyzer = AcuteAnalyzer(opt)
analyzer = self.ANALYZER(opt)
self.results = analyzer.get_matchup_totals_with_significance()
analyzer.save_results()

Expand Down

0 comments on commit 85e9cba

Please sign in to comment.