我同意文档在这个问题上有些不清楚。看来冻结的发行版修复了第一n时刻,以方便程序员。我不知道 SciPy 之外有“forzen distribution”这个术语。
SciPy 的冻结发行版也许在这里得到了最好的描述:
一次又一次地传递 loc 和 scale 关键字可能会变得非常麻烦。冷冻房车的概念就是用来解决此类问题的。
rv = gamma(1, scale=2.)通过使用 rv,我们不再需要包含比例或形状参数。因此,可以通过以下两种方式之一使用分布:将所有分布参数传递给每个方法调用(如我们之前所做的)或冻结分布实例的参数。让我们检查一下:
rv.mean(), rv.std() (2.0, 2.0)这确实是我们应该得到的。
在 scipy 教程页面中,我们看到以下行:
(我们在下面解释冻结分布的含义)。
此后唯一提及冻结分发的内容如下:
非冻结分布的主要附加方法与分布参数的估计有关:
Run Code Online (Sandbox Code Playgroud)fit: maximum likelihood estimation of distribution parameters, including location and scale fit_loc_scale: estimation of location and scale when shape parameters are given nnlf: negative log likelihood function expect: calculate the expectation of a function against the pdf or pmf
| 归档时间: |
|
| 查看次数: |
1976 次 |
| 最近记录: |