Crates.io | gen-rs |
lib.rs | gen-rs |
version | 0.2.3 |
source | src |
created_at | 2023-08-19 20:14:40.68542 |
updated_at | 2024-03-05 02:46:57.96991 |
description | a experimental library for probabilistic programming in Rust. |
homepage | |
repository | https://github.com/agarret7/gen-rs |
max_upload_size | |
id | 948884 |
size | 107,288 |
This is evolving software. Expect breaking API changes.
gen-rs is an experimental crate for probabilistic programming in Rust. gen-rs was inspired by GenTL, but with Rust-native constructs.
It approximately* implements the Generative Function Interface [GFI] as specified in the Gen.jl whitepaper and Marco Cusumano-Towner's thesis. It provides several kinds of inference procedures built on this interface.
Dynamically-typed TrieFn
DSL
Unfold Kernel Combinator
Generate visualizations to visualizations
with:
python -m venv venv && source venv/bin/activate && pip install matplotlib
cargo test && python visualization/visualizer.py
(*) gen-rs
does not exactly implement the GFI. More precisely, gen-rs
does not implement retdiff or choice gradients.