Run Laya System 1 decision models (typed choice, score and yes/no questions with calibrated probabilities) locally from R, through the laya-onnx Rust crate and ONNX Runtime. No Python or server is required at prediction time.
Options
layaR reads these options; set them with options(), for example in your
.Rprofile.
layaR.checkpoint: the checkpointlaya_default_engine()loads ("multilingual"by default).layaR.threads: the defaultintra_op_threadsforlaya_engine()(NULL: ONNX Runtime chooses).layaR.batch_size: the defaultbatch_sizeforlaya_predict_batch()andlaya_annotate()(1).layaR.model_root: where models are installed (seelaya_model_root()).layaR.model_repo: the Hugging Face repositorylaya_download_model()uses ("gueyenono/laya-onnx").layaR.shared_cache:FALSEstops layaR from looking for models in the cache shared with Laya's Rust and TypeScript SDKs.
Author
Maintainer: G. Nono Ghislain nonoghislain@gmail.com
Authors:
G. Nono Ghislain nonoghislain@gmail.com
Other contributors:
Convai Innovations (laya-onnx Rust crate and the test fixtures derived from its golden tests) [copyright holder]
Microsoft Corporation (ONNX Runtime) [copyright holder]
Authors of the dependency Rust crates (see LICENSE.note) [copyright holder]