package sklearn

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

## module Ndarray.Int

Build an Ndarray containing integers. The integers are actually stored as nativeints inside the Ndarray.

val vector : int array -> t

### vector

Build a vector from an OCaml int array.

val matrix : int array array -> t

### matrix

Build a dense matrix from an OCaml int array array.

### of_bigarray

Build a dense tensor from a bigarray. The data is not copied, and is shared between the bigarray and the Pyhon Ndarray. You may find Owl useful for building the bigarray.

### to_bigarray

Build a bigarray that shares the same data as the Ndarray. Raises an exception if the Ndarray has the wrong dtype or layout.

val matrices : int array array list -> List.t

### matrices

Build a Python list of Ndarrays, with each Ndarray being a matrix initialized from an OCaml int array array.

val vectors : int array list -> List.t

### vectors

Build a Python list of Ndarrays, with each Ndarray being a vector initialized from an OCaml int array.

OCaml

Innovation. Community. Security.