gpt4 book ai didi

python - BIC(贝叶斯信息准则)应该更低还是更高

转载 作者:行者123 更新时间:2023-12-01 09:17:07 24 4
gpt4 key购买 nike

我对 BIC 图与 GMM 中组件数量的关系感到非常困惑。 Python 文档说越低越好,但我在一些网站上读到,正确的簇数是局部最大值的第一个位置!!!

任何人都可以详细说明这一点,Python 是否使用不同的方程(可能带有负号乘以 BIC 分数方程)?

最佳答案

不同来源的 BIC 定义似乎有所不同。这是bic方法的源代码:

    def bic(self, X):
. . .
return (-2 * self.score(X) * X.shape[0] +
self._n_parameters() * np.log(X.shape[0]))

随着模型复杂性的增加,bic 值会增加,而随着可能性的增加,bic 会减少。所以,越低越好。这个定义与 related the wikipedia page 上的公式相同.

此外,我在维基百科页面上找到了此注释,它可以解释为什么这个定义小于您的预期:

NOTE: The AIC, AICc and BIC defined by Claeskens and Hjort (2008) is the negative of that defined in this article and in most other standard references.

关于python - BIC(贝叶斯信息准则)应该更低还是更高,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51144580/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com