Spaces:
Running
Running
| """Latent confounder utilities.""" | |
| from __future__ import annotations | |
| import random | |
| def sample_confounder(seed: int) -> float: | |
| random.seed(seed) | |
| return round(random.uniform(0.0, 1.0), 3) | |
| """Latent confounder utilities.""" | |
| from __future__ import annotations | |
| import random | |
| def sample_confounder(seed: int) -> float: | |
| random.seed(seed) | |
| return round(random.uniform(0.0, 1.0), 3) | |