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

Commit

Permalink
[Per-Turn Eval] Task fixes (#4560)
Browse files Browse the repository at this point in the history
* Update run.py

* Established fix
  • Loading branch information
EricMichaelSmith authored and kushalarora committed Jun 15, 2022
1 parent 0d2e906 commit 86502a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion parlai/crowdsourcing/tasks/pairwise_per_turn_eval/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
TASK_DIRECTORY = os.path.dirname(os.path.abspath(__file__))


defaults = ['_self_', {"conf": "example"}]
defaults = ['_self_', {"conf": "example_model_comparison"}]


@dataclass
Expand Down
5 changes: 1 addition & 4 deletions parlai/crowdsourcing/tasks/pairwise_per_turn_eval/worlds.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,10 +517,7 @@ def validate_onboarding(data):
status_message = messages[-2]
if status_message is None:
return False
submitted_data = status_message.get('data')
if submitted_data is None:
return False
final_status = submitted_data.get('final_status')
final_status = status_message.get('final_status')
return final_status == ONBOARD_SUCCESS


Expand Down

0 comments on commit 86502a3

Please sign in to comment.