package sklearn

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

## module Ndarray.Float

Build an Ndarray containing floats.

val vector : float array -> t

### vector

Build a vector from an OCaml float array.

val matrix : float array array -> t

### matrix

Build a dense matrix from an OCaml float 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 : float array array list -> List.t

### matrices

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

val vectors : float array list -> List.t

### vectors

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

OCaml

Innovation. Community. Security.