frites.stats.bootstrap_partitions#
- frites.stats.bootstrap_partitions(n_epochs, *groups, n_partitions=200, random_state=None)[source]#
Generate partitions for bootstrap.
- Parameters
- n_epochs
python:int
Number of epochs
- groupsnumpy:array_like
Groups within which permutations are performed. Should be arrays of shape (n_epochs,) and of type int
- n_partitions
python:int
| 200 Number of partitions to get
- random_state
python:int
|python:None
Fix the random state of the machine (use it for reproducibility). If None, a random state is randomly assigned.
- n_epochs
- Returns
- partitions
python:list
List of arrays describing the partitions within groups or not
- partitions