Skip to main content

models.permutation()

0..n shuffled with seed on stream stream: the permutation

Usage

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

that permutation_importance and interaction_screen apply, the same in Python and R.

Parameters

n: int
seed: int
stream: int = 0

Returns

list of int

Examples

>>> from prospicio.models import permutation
>>> sorted(permutation(4, 1))

[0, 1, 2, 3]