Skip to main content

bernoulli

Function bernoulli 

Source
pub fn bernoulli<B: Backend, T: Float>(
    key: &Key<B>,
    p: impl ArrayLike<B, T>,
    shape: impl Into<Shape>,
) -> Array<B, bool>
Expand description

Random booleans that are true with probability p (jax.random.bernoulli).