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

Make MD Gender classifier compatible with Batch refactor #3533

Merged
merged 3 commits into from
Mar 22, 2021

Conversation

EricMichaelSmith
Copy link
Contributor

Patch description
#3389 changed how data is stored in Batches, removing the 'observations' field, adding a canonical .labels field, etc., and projects/style_gen/classifier.py was refactored as part of that. This PR modifies projects/md_gender/bert_ranker_classifier/agents.py similarly to as was done in that PR.

Testing steps
Gender classifier sweep

Copy link
Contributor

@emilydinan emilydinan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx for fix eric! this LGTM

extra_data = gend_utils.get_inferred_about_data(
self.opt['task'], self.opt['datatype']
)
extra_data = gend_utils.get_inferred_about_data(self.opt['task'], self.opt)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was this a bug?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm I imagine that the function signature must have changed somewhere along the way?

@EricMichaelSmith EricMichaelSmith merged commit 4a55d3d into master Mar 22, 2021
@EricMichaelSmith EricMichaelSmith deleted the md-gender-tweak branch March 22, 2021 16:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants