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

Specify ACUTE-Eval analyzer type #3781

Merged
merged 1 commit into from
Jul 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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