set_seeds
anomaly_match.utils.set_seeds
¶
Random seed initialization for reproducibility.
set_seeds(seed, deterministic=False)
¶
Sets the seeds for the random number generators in torch, numpy and random.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
seed
|
int
|
seed for the random number generators |
required |
deterministic
|
bool
|
if True, sets the cudnn to deterministic mode. Default: False |
False
|