-
Notifications
You must be signed in to change notification settings - Fork 196
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
Global seed changes #146
Global seed changes #146
Conversation
@kaustubhdhole & @aadesh11 can you take a look at this? |
Hi @SirRob1997, this looks very promising! Yes, it is okay to change the values of the test cases to reflect the changes off a new seed! I would be happy to re-test it myself too if you need a final confirmation. :) |
Thanks, @SirRob1997 for making the codebase looks cleaner. Please help to make the required changes in the test case of Butter Finger perturbation to pass the GitHub action checks. |
Yup will adapt things either on Sunday or Monday, depending on when I can scrap a few minutes. |
EDIT: Fixed it, there was something missing in I'm having trouble getting one of the transformations to run, so it's hard for me to adjust this last test, all others pass now. Does someone know what I need to do to resolve these issues:
|
…ted tests to global seed
…nd adapted tests for global seed
The |
For Review @aadesh11 @AbinayaM02 |
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.
Fix for pytest failure.
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.
Please resolve the conflicts and let's see if the pytest goes through without any issue.
@SirRob1997 - thank you very much for your changes - can you please resolve the conflicts |
Hey, sorry I'm really busy recently and unfortunately I don't think I'll find time over the next few weeks to fix these issues. Hopefully someone else can implement the idea... |
This PR is for the changes discussed in #145. I thought removing it from the interface made the most sense, so we don't pass any redundant information and only set the
seed
for bothrandom
andnumpy
once ininitialize.py
. I've also used this to fix some remainingspacy.load
issues in some of the filters/transformations so they are loaded only once ininitialize.py
.Would be nice if you could test all things to make sure I didn't break anything.
Draft for now, since I think some tests need to be adjusted now since they used a different seed.