Crate nice_smile
source ·Expand description
§Rust SMILE wrapper
This repository contains two SMILE wrappers for the Rust programming language.
§smile crate
The smile crate is a low-level wrapper around the SMILE C++ API. It is a direct translation of the C++ API to Rust using the autocxx crate. This crate is meant to be used as is or as a foundation for higher-level abstractions.
§Compilation
To compile the smile crate, you need download the official SMILE distribution first. You can do so through the https://bayesfusion.com/downloads/ page. Whether you download the buisness or academic version is up to you and your requirements.
When you have downloaded the distribution, you need to extract it and move all files directly to the include/ directory of this repository.
Make sure that the include/ directory contains the smile.h file.
Then you have to acquire a respective license key for your distribution and place the smile_license.h file into the same directory.
After that, you can safely complie the crate.
§Caveats
Some methods cannot be generated due to upstream issues and thus are not public.
§nice_smile crate
The [nice_smile] crate is a high-level wrapper around the smile crate. It provides a more Rust-like API and abstracts away some of the low-level details.
The documentation for this crate can be found at TODO
Modules§
- This module contains the errors::Error enum and its implementation.
- This module contains the network::Network struct and its implementation.
- This module contains the pattern::Pattern struct and its implementation.