如果我具有mnlogit的参数/系数,如何对数据进行评分并获得概率

时间:2019-04-30 15:56:21

标签: python logistic-regression

这是我要解决的问题。请参见下面

logit = stats.MNLogit(y, x)
   logit_fit = logit.fit(method='newton', full_output = True, maxiter = 1000, tol = 1e-8)
   print(logit_fit.params)
   logit_fit.summary()
   outProb0 = logit_fit.predict(x)
   logit_fit.params=avg_par
   print('after change')
   print(logit_fit.params)
   outProb = logit_fit.predict(x)
   logit_fit.summary()

0 个答案:

没有答案