package sklearn

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

## module Arr.Object

Build an Arr containing mixed ints, floats or strings.

type elt = [
  1. | `I of int
  2. | `F of float
  3. | `S of string
  4. | `Arr of t
]

The type of an element: int (`I), float (`F) or string (`S).

val vector : elt array -> t

### vector

Build a vector from an OCaml array.

Example :

~~~ocaml let x = Arr.Object.vector | `I 42; `S "answer"; `F 12.3 | ~~~

val matrix : elt array array -> t

### matrix

Build a matrix from an OCaml array of arrays.

Example :

~~~ocaml let x = Arr.Object.matrix | [|`I 42; `S "answer"|]; [|`I 43; `S "lala"|] | ~~~

OCaml

Innovation. Community. Security.