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.xgboost/Caisar_xgboost/Tree/index.html

Module Caisar_xgboost.TreeSource

Sourcetype tree =
  1. | Split of {
    1. split_indice : int;
    2. split_condition : float;
    3. left : tree;
    4. right : tree;
    5. missing : [ `Left ];
    }
  2. | Leaf of {
    1. leaf_value : float;
    }
Sourcetype op =
  1. | Identity
  2. | Sigmoid
Sourcetype t = {
  1. base_score : float;
  2. trees : tree array;
  3. after_sum : op;
}

the value is op(base_score + sum(tree))

Sourceval convert : Parser.t -> t
Sourceval predict : t -> Input.t -> float