jax.random.logistic#
- jax.random.logistic(key, shape=(), dtype=<class 'float'>)[源代码]#
使用给定的形状和浮点数 dtype 采样逻辑随机值。
这些值根据概率密度函数分布
\[f(x) = \frac{e^{-x}}{(1 + e^{-x})^2}\]- 参数:
key (ArrayLike) – 用作随机键的 PRNG 键。
shape (Shape) – 可选,表示结果形状的非负整数元组。默认为 ()。
dtype (DTypeLikeFloat) – 可选,返回值的浮点数 dtype (如果 jax_enable_x64 为 true,则默认为 float64,否则为 float32)。
- 返回:
具有指定形状和 dtype 的随机数组。
- 返回类型: