package sklearn
Module Utils.RandomSource
Get an attribute of this module as a Py.Object.t. This is useful to pass a Python function to another function.
Source
val check_random_state :
[ `Optional of [ `I of int | `None ] | `RandomState of Py.Object.t ] ->
Py.Object.tTurn seed into a np.random.RandomState instance
Parameters ---------- seed : None | int | instance of RandomState If seed is None, return the RandomState singleton used by np.random. If seed is an int, return a new RandomState instance seeded with seed. If seed is already a RandomState instance, return it. Otherwise raise ValueError.
Source
val random_choice_csc :
?class_probability:Py.Object.t ->
?random_state:int ->
n_samples:Py.Object.t ->
classes:Py.Object.t ->
unit ->
Py.Object.tDEPRECATED: random_choice_csc is deprecated in version 0.22 and will be removed in version 0.24.