gemseo.mlearning.resampling.bootstrap module#

A bootstrap tool for resampling and surrogate modeling.

class Bootstrap(sample_indices, n_replicates=100, seed=0)[source]#

Bases: BaseResampler

A bootstrap tool for resampling and surrogate modeling.

Parameters:
  • sample_indices (NDArray[int]) -- The original indices of the samples.

  • n_replicates (int) --

    The number of bootstrap replicates.

    By default it is set to 100.

  • seed (int | None) --

    The seed to initialize the random generator. If None, then fresh, unpredictable entropy will be pulled from the OS.

    By default it is set to 0.

property n_replicates: int#

The number of bootstrap replicates.