pub trait Sampleable {
// Required methods
fn sample(&self) -> Value;
fn liklihood(&self, value: &Value) -> Result<f64, &str>;
}
Expand description
A trait that you can implement to create your own distributions to sample from in a generative model.