Skip to content

PolicyEngine/statsmodels-sgd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

statsmodels-sgd

Reimplementation of statsmodels using stochastic gradient descent

Use just like statsmodels, but with stochastic gradient descent.

Installation

pip install git+https://github.com/PolicyEngine/statsmodels-sgd.git

Example

import statsmodels_sgd.api as sm_sgd

# Fit OLS model

model = sm_sgd.OLS(n_features=X.shape[1])
model.fit(X, y)

# Fit Logit model

model = sm_sgd.Logit(n_features=X.shape[1])
model.fit(X, y)

About

Reimplementation of statsmodels using stochastic gradient descent

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages