Seeding
igl.seed_everything(seed)
Seed python, numpy, and torch global RNGs in one call.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
seed
|
int
|
The seed applied to all three generators. |
required |
igl.fit_seeds(factory, x, y=None, *, seeds)
Fit one estimator per seed and aggregate the headline read-outs.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
factory
|
Callable[[int], fit_seeds[EstimatorT]]
|
Builds a fresh estimator for a given seed (typically
|
required |
x
|
object
|
Training inputs, forwarded to |
required |
y
|
object | None
|
Optional training targets, forwarded to |
None
|
seeds
|
Sequence[int]
|
The seed list — e.g. a project's canonical seed protocol. |
required |
Returns:
| Type | Description |
|---|---|
dict[str, object]
|
A dict with |
dict[str, object]
|
and |
dict[str, object]
|
estimators ( |
dict[str, object]
|
its mean, std, median, and IQR across seeds. |