package caisar

  1. Overview
  2. Docs
type t = private {
  1. n_layers : int;
    (*

    Number of layers.

    *)
  2. n_inputs : int;
    (*

    Number of inputs.

    *)
  3. n_outputs : int;
    (*

    Number of outputs.

    *)
  4. max_layer_size : int;
    (*

    Maximum layer size.

    *)
  5. layer_sizes : int list;
    (*

    Size of each layer.

    *)
  6. min_input_values : float list option;
    (*

    Minimum values of inputs.

    *)
  7. max_input_values : float list option;
    (*

    Maximum values of inputs.

    *)
  8. mean_values : (float list * float) option;
    (*

    Mean values of inputs and one value for all outputs.

    *)
  9. range_values : (float list * float) option;
    (*

    Range values of inputs and one value for all outputs.

    *)
  10. weights_biases : float list list;
    (*

    All weights and biases of NNet model.

    *)
}

NNet model metadata.

val parse : ?permissive:bool -> string -> (t, string) Result.t

Parse an NNet file.

  • parameter permissive

    false by default. When set, parsing does not fail on non available information, which are set to None instead.

OCaml

Innovation. Community. Security.