Git Product home page Git Product logo

langmore / statsmodels Goto Github PK

View Code? Open in Web Editor NEW

This project forked from statsmodels/statsmodels

3.0 3.0 0.0 16.73 MB

A slight modification of statsmodels that allows for l1 regularization of LikelihoodModel. See README.txt

Home Page: http://statsmodels.sourceforge.net/devel/

License: BSD 3-Clause "New" or "Revised" License

Assembly 0.20% C 0.22% R 0.17% Python 99.10% JavaScript 0.31%

statsmodels's People

Contributors

alexis-roche avatar awblocker avatar bartbkr avatar dengemann avatar fperez avatar gaelvaroquaux avatar j-grana6 avatar jarrodmillman avatar jonathan-taylor avatar josef-pkt avatar jseabold avatar langmore avatar matthew-brett avatar mbrucher avatar njsmith avatar phobson avatar pprett avatar rgommers avatar rogerlew avatar scottwpiraino avatar takluyver avatar timmie avatar vincentarelbundock avatar vincentdavis avatar wesm avatar yarikoptic avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

statsmodels's Issues

After re-scaling 3 tests don't pass.

After pull #5 was merged, 3 tests don't pass. There are differences at around the 4th decimal place. I am using numpy 1.6.1 and scipy 0.9.0.

-------------------- Test result snippets ----------------------------------

FAIL: statsmodels.discrete.tests.test_discrete.TestPoissonL1Compatability.test_f_test
...
AssertionError:
Arrays are not almost equal to 3 decimals

(mismatch 100.0%)
x: array([[ 11794.18165332]])
y: array([[ 11794.18460073]])


FAIL: statsmodels.discrete.tests.test_discrete.TestProbitCG.test_conf_int
...
AssertionError:
Arrays are not almost equal to 4 decimals

(mismatch 37.5%)
x: array([[ 0.26591211, 2.98595073],
[ -0.11269725, 0.2161498 ],
[ 0.26008461, 2.59262668],
[-12.43592369, -2.46939961]])
y: array([[ 0.2658255, 2.985795 ],
[ -0.1126929, 0.2161508],
[ 0.2600795, 2.592585 ],
[-12.43547 , -2.469166 ]])


FAIL: statsmodels.discrete.tests.test_discrete.TestProbitCG.test_params
...
AssertionError:
Arrays are not almost equal to 4 decimals

(mismatch 25.0%)
x: array([ 1.62593142, 0.05172627, 1.42635565, -7.45266165])
y: array([ 1.62581025, 0.05172895, 1.42633237, -7.45232042])

Problem with cov_params and L1CountResults

cov_params() does not work with L1CountResults (result returned by sm.Poisson.fit_regularized. It raises the following:

TypeError: unbound method cov_params() must be called with CountResults instance as first argument (got L1CountResults instance instead)

Default start params for l1

Using zero start params may cause issues. In any case, different values should be explored.

if start_params is None:
start_params = np.zeros((self.K * (self.J-1)))
else:
start_params = np.asarray(start_params)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.