statsmodels.gam.generalized_additive_模型.LogitGam.获取分布¶
-
LogitGam.get_distribution(params, exog=
None, offset=None)¶ 获取基于预测参数的分布的冻结实例。
- Parameters:¶
- paramsarray_like
模型的参数。
- exog
ndarray,optional 主计数模型的解释变量。 如果
exog为 None,则将使用模型中的数据。- offset
ndarray,optional 偏移量被添加到均值函数的线性预测器中,系数等于1。 如果exog不为None,则默认值为零;如果exog为None,则默认值为模型偏移量。
- exposure
ndarray,optional Log(exposure) 被添加到均值函数的线性预测器中,系数等于1。如果指定了exposure,则该方法会对其进行对数处理。用户不需要先对其进行对数处理。如果exog不为None,则默认值为1;如果exog为None,则默认值为模型的exposure。
- Returns:¶
Instanceoffrozenscipydistribution.
Last update:
Oct 16, 2024