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: intseed: intstream: int = 0
Returns
list of int
Examples
>>> from prospicio.models import permutation
>>> sorted(permutation(4, 1))[0, 1, 2, 3]