package owl-base

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val sample_num : t -> int

Return the total number of samples in passed in ndarray.

val draw_samples : t -> t -> int -> t * t

``draw_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 : t -> t -> int -> int -> t * t

``get_chunk x y i c`` gets a continuous chunk of ``c`` samples from position ``i`` from ``x`` (observations) and ``y`` (labels).