Skip to main content

models.bootstrap_rows()

n row indices drawn from range(n) with replacement on stream

Usage

models.bootstrap_rows(
    n,
    seed,
    stream=0,
)

stream of seed: the bootstrap resample Booster refits on, the same in Python and R.

Parameters

n: int
seed: int
stream: int = 0

Returns

list of int

Examples

>>> from prospicio.models import bootstrap_rows
>>> bootstrap_rows(8, 3)

[4, 0, 2, 6, 1, 1, 0, 5]