Skip to content

Use different seeds to get different outputs #32

@miquel-espinosa

Description

@miquel-espinosa

Hi.
I would like to know if it is possible to use different seeds to get different outputs from terramind.
At the moment, I'm simply seeding before calling the model.

seed=1234
import random
random.seed(seed)
np.random.seed(seed)
torch.manual_seed(seed)
if torch.cuda.is_available():
    torch.cuda.manual_seed_all(seed)

Is this the correct approach?
Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions