package sklearn

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

## module Array.String

Build an Array containing strings.

val vector : string array -> t

### vector

Build a vector from an OCaml string array.

Example :

~~~ocaml let x = Array.String.vector |"a"; "answer"| ~~~

val matrix : string array array -> t

### matrix

Build a matrix from an OCaml array of arrays.

Example :

~~~ocaml let x = Array.String.matrix | [|"a"; "answer"|]; [|"b"; `"lala"|] | ~~~

val vectors : string array list -> List.t

### vectors

Build a Python list of Arrays, with each Array being a vector initialized from an OCaml string array.

Example :

~~~ocaml let x = Array.String.matrix | [|"a"|]; [|"b"; `"lala"; "d"|] | ~~~

OCaml

Innovation. Community. Security.