-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add run_zeroshot.py
; add functionality to data.get_templated_dataset()
(formerly add_templated_examples()
)
#292
Conversation
Still work in progress |
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
@danielkorat Lines 177 to 189 in 5e78e40
is a leftover decorator from the now-removed |
@tomaarsen |
run_zeroshot.py
; add functionality to data.add_templated_examples()
run_zeroshot.py
; add functionality to data.get_templated_dataset()
(formerly add_templated_examples()
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have some small nitpicks, could you have a look at them?
Co-authored-by: Tom Aarsen <[email protected]>
Co-authored-by: Tom Aarsen <[email protected]>
Co-authored-by: Tom Aarsen <[email protected]>
Co-authored-by: Tom Aarsen <[email protected]>
Co-authored-by: Tom Aarsen <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! get_templated_dataset
feels pretty intuitive to use.
I'll let @lewtun decide if we need to keep add_templated_examples
and add_augmented_samples
, which this PR removes, but fully replace the function bodies with a deprecation warning instead. These warnings can point to the new get_templated_dataset
. I suspect that the code of some notebooks or tutorials out there might break without explanation otherwise.
with a deprecation warning. What do you think @tomaarsen ? |
A deprecation warning would be great. Could you include a suggestion of the new function to use as well as that the old function will be removed in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have some tiny last nitpicks
Co-authored-by: Tom Aarsen <[email protected]>
@tomaarsen please review |
Thank you @danielkorat for sticking with me through my many suggestions. The script is very useful, as is the new and improved |
This PR simplifies running zero shot with SetFit.
The goal is to add a
run_zeroshot.py
script and remove the functiondata.get_augmented_samples()
since its functionality is included in the genericdata.get_templated_dataset()
.