Skip to main content

dirichlet

Function dirichlet 

Source
pub fn dirichlet<B: Backend, T: Float>(
    key: &Key<B>,
    alpha: &Array<B, T>,
    batch_shape: impl Into<Shape>,
) -> Array<B, T>
Expand description

Dirichlet random floats (jax.random.dirichlet): alpha has shape [..., k], and the result has shape batch_shape + [k].