package caisar

  1. Overview
  2. Docs
A platform for characterizing the safety and robustness of artificial intelligence based software

Install

dune-project
 Dependency

Authors

Maintainers

Sources

caisar-5.0.tbz
sha256=05024c094f68b82873f2c99c89d4f196049ac63b7d1d4f68ae1a1e3b08de7342
sha512=a26c724a19fca7c22a000367d1cd79c1e0474f373bf7265449928e55275ac44103190536dc8c76f5ac00a2a1897c3bd2ee06bb6f22140165079b72a27011e6df

doc/caisar.nnet/Nnet/index.html

Module NnetSource

Module to parse neural networks written in the NNet format (see the specification at https://github.com/sisl/NNet).

Sourcetype 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.

    *)
  11. nir : Nir.Ngraph.t;
}

NNet model metadata.

Sourceval 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.