Skip to content
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

Fixing the dataloader seed for accuracy experiments #37

Merged
merged 7 commits into from
Dec 19, 2024

Conversation

dgourab-aws
Copy link
Collaborator

No description provided.

@@ -21,6 +21,9 @@
# Value of "target_labels" which will be ignored in seq2seq processing.
SEQ2SEQ_IGNORE_TARGET_LABEL = -1

seed = os.environ.get("DATA_SEED")
seed = int(seed) if seed is not None else None
tf.random.set_seed(seed)
Copy link

@satishpasumarthi satishpasumarthi Dec 17, 2024

Choose a reason for hiding this comment

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

would this line work if seed is None ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes it will work as it's currently working, without any set seed.

@patrick-toulme
Copy link
Owner

Can you rebase and squash these commits?

@patrick-toulme patrick-toulme merged commit 5209fcd into accuracy_workstream_trn Dec 19, 2024
0 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants