我有三个类 [-1,0,1],我正在对它们运行多类逻辑回归。当我运行 logreg.predict_proba(x) 时,它返回一个数组 [.25, .5, .25] 这是否意味着位置 0 是类 -1,位置 1 是类 0,位置 2 是类 1?换句话说,逻辑回归如何将类映射到输出列?它是按数字顺序执行的吗?或者基于它看到的第一类?
python pandas scikit-learn
pandas ×1
python ×1
scikit-learn ×1