frites.stats.bootstrap_partitions#

frites.stats.bootstrap_partitions(n_epochs, *groups, n_partitions=200, random_state=None)[source]#

Generate partitions for bootstrap.

Parameters
n_epochspython: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_partitionspython:int | 200

Number of partitions to get

random_statepython:int | python:None

Fix the random state of the machine (use it for reproducibility). If None, a random state is randomly assigned.

Returns
partitionspython:list

List of arrays describing the partitions within groups or not