tensorly.random.check_random_state

check_random_state(seed)[source]

Returns a valid RandomState

Parameters:
seedNone or instance of int or np.random.RandomState(), default is None
Returns:
Valid instance np.random.RandomState

Notes

Inspired by the scikit-learn eponymous function