Optimise.UtilsUtils module
val sample_num : Algodiff.t -> intReturn the total number of samples in passed in ndarray.
val draw_samples : Algodiff.t -> Algodiff.t -> int -> Algodiff.t * Algodiff.tdraw_samples x y draws samples from both x (observations) and y (labels). The samples will be drew along axis 0, so x and y must agree along axis 0.
val get_chunk :
Algodiff.t ->
Algodiff.t ->
int ->
int ->
Algodiff.t * Algodiff.tget_chunk x y i c gets a continuous chunk of c samples from position i from x (observations) and y (labels).