Logit.predict()

statsmodels.discrete.discrete_model.Logit.predict

Logit.predict(params, exog=None, linear=False)

Predict response variable of a model given exogenous variables.

Parameters:

params : array-like

Fitted parameters of the model.

exog : array-like

1d or 2d array of exogenous values. If not supplied, the whole exog attribute of the model is used.

linear : bool, optional

If True, returns the linear predictor dot(exog,params). Else, returns the value of the cdf at the linear predictor.

Returns:

array

Fitted values at exog.

© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.discrete.discrete_model.Logit.predict.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部