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

global: add possibility to set flair seed #1979

Merged
merged 1 commit into from
Nov 23, 2020
Merged

global: add possibility to set flair seed #1979

merged 1 commit into from
Nov 23, 2020

Conversation

stefan-it
Copy link
Member

Hi,

this PR adds the possibility to set a seed via wrapping the Hugging Face Transformers library helper method.

By specifying a seed with:

import flair

flair.set_seed(42)

more reproducable experiments are possible. The wrapped set_seed method sets seeds for random, numpy and torch. More details here.

@alanakbik
Copy link
Collaborator

@stefan-it thanks for adding this!

@alanakbik alanakbik merged commit 43b3802 into master Nov 23, 2020
@stefan-it stefan-it deleted the add-flair-seed branch November 23, 2020 14:53
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.

2 participants