Skip to content

How to set random seed for the model in YAML file #1532

Answered by tgaddair
PeterPirog asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @PeterPirog, good observation. Currently the random seed isn't configurable in the YAML, it is passed in as a command-line parameter, like:

ludwig train ... --random_seed 42

It can also be passed in to the LudwigModel programmatically:

model = LudwigModel(...)
model.train(..., random_seed=42)

It shouldn't be too difficult for us to add this to the config in the training section. What do you think @w4nderlust ?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@PeterPirog
Comment options

Answer selected by tgaddair
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants