export_artifact writes the part the runtime needs.
Directory layout
khaos.manifest.Manifest
The
meta of a trained artifact carries what is needed to use it. For example, chem_logp
stores target_mean and target_std (multiply the output by the standard deviation and add the
mean), the SMILES tokenizer_vocab, and the maximum length. robo_failure_detection stores its
calibrated alarm_threshold.
khaos.export.export_artifact
out_dir as model.onnx plus manifest.json, and returns the
directory.
A model from
khaos.<domain>.models, or any module that declares the attributes below.
The manifest always records
architecture, inputs and outputs in meta.