tensorly.check_random_state

check_random_state(seed)

Returns a valid RandomState

Parameters
seedNone or instance of int or np.random.RandomState(), default is None
if seed is None NumPy’s global seed is used.
Returns
Valid instance np.random.RandomState

Notes

Inspired by the scikit-learn eponymous function