Skip to main content

bernoulli

Function bernoulli 

Source
pub fn bernoulli(p: f64, shape: &[usize], key: Option<&Array>) -> Result<Array>
Expand description

Booleans of shape that are true with probability p, as MLX: uniform < p.