author
int64
658
755k
date
stringlengths
19
19
timezone
int64
-46,800
43.2k
hash
stringlengths
40
40
message
stringlengths
5
490
mods
list
language
stringclasses
20 values
license
stringclasses
3 values
repo
stringlengths
5
68
original_message
stringlengths
12
491
641,904
19.08.2017 20:38:37
25,200
f83886c9f3dc432bae33c917144f37d06b872a02
Fix typo that caused AttributeError
[ { "change_type": "MODIFY", "old_path": "statsmodels/tsa/statespace/mlemodel.py", "new_path": "statsmodels/tsa/statespace/mlemodel.py", "diff": "@@ -1801,7 +1801,7 @@ class MLEResults(tsbase.TimeSeriesModelResults):\ndef _cov_params_opg(self, approx_complex_step=True, approx_centered=False):\nnobs = ...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Fix typo that caused AttributeError
642,065
21.08.2017 02:57:36
0
0bb528d67fd29adb0b806c5fcd4c6da7dd7a6636
DOC: Fix missing icons with just jQuery
[ { "change_type": "MODIFY", "old_path": "docs/source/_static/facebox.js", "new_path": "docs/source/_static/facebox.js", "diff": "/*\n* Facebox (for jQuery)\n- * version: 1.2 (05/05/2008)\n+ * version: 1.3\n* @requires jQuery v1.2 or later\n- *\n- * Examples at http://famspam.com/facebox/\n+ * @homepa...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
DOC: Fix missing icons with just jQuery
641,860
21.08.2017 12:34:37
-10,800
46d799b656fd3bfe003a14dcaff07444ac3b22b6
Updated docs, vectorized loops
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/discrete_model.py", "new_path": "statsmodels/discrete/discrete_model.py", "diff": "@@ -2760,8 +2760,7 @@ class NegativeBinomialP(CountModel):\ndef loglikeobs(self, params):\n\"\"\"\n- Loglikelihood for observations of Generalized Negative ...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Updated docs, vectorized loops
641,971
21.08.2017 15:12:10
14,400
db249296db6852ec5e67c6e3e08f3dd551f054ef
REF NegativeBinomialP, set default p=2
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/discrete_model.py", "new_path": "statsmodels/discrete/discrete_model.py", "diff": "@@ -2731,7 +2731,7 @@ class NegativeBinomialP(CountModel):\nequal to 1.\n\"\"\" + base._missing_param_doc}\n- def __init__(self, endog, exog, p=1, offset=No...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
REF NegativeBinomialP, set default p=2
641,971
21.08.2017 15:14:40
14,400
46d4e75471daa4af70c670f0c512f9b29e1b53d7
TST: add continous margin test, identical to NB2
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/tests/test_margins.py", "new_path": "statsmodels/discrete/tests/test_margins.py", "diff": "@@ -7,7 +7,8 @@ Author: Josef Perktold\nimport numpy as np\nfrom numpy.testing import assert_allclose\n-from statsmodels.discrete.discrete_model imp...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
TST: add continous margin test, identical to NB2
641,971
21.08.2017 21:08:07
14,400
fb9f2b47cc4e6098b836912a8f97b9142ff401fb
TST: arima test_start_params, add large start_ar_lags
[ { "change_type": "MODIFY", "old_path": "statsmodels/tsa/tests/test_arima.py", "new_path": "statsmodels/tsa/tests/test_arima.py", "diff": "@@ -534,7 +534,7 @@ def test_start_params_bug():\n1600, 1876, 1885, 1962, 2280, 2711, 2591, 2411])\nwith warnings.catch_warnings():\nwarnings.simplefilter(\"ignor...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
TST: arima test_start_params, add large start_ar_lags
642,026
05.09.2017 13:40:47
18,000
1d945dbb1be54a711674cc12e36693bd18127242
update documentation sarimax.py just fixing a typo.
[ { "change_type": "MODIFY", "old_path": "statsmodels/tsa/statespace/sarimax.py", "new_path": "statsmodels/tsa/statespace/sarimax.py", "diff": "@@ -79,7 +79,7 @@ class SARIMAX(MLEModel):\nsimple_differencing : boolean, optional\nWhether or not to use partially conditional maximum likelihood\nestimatio...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
update documentation sarimax.py just fixing a typo.
641,860
12.06.2017 17:55:31
-10,800
cb844c8c8bae5349ebbda6822317cc3efa4212c9
Implemented llf for genericZeroInflated model
[ { "change_type": "MODIFY", "old_path": "statsmodels/api.py", "new_path": "statsmodels/api.py", "diff": "@@ -15,6 +15,7 @@ from .discrete.discrete_model import (Poisson, Logit, Probit,\nMNLogit, NegativeBinomial,\nGeneralizedPoisson,\nNegativeBinomialP)\n+from .discrete.count_model import (PoissonZer...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Implemented llf for genericZeroInflated model
641,860
13.06.2017 01:40:19
-10,800
59fd045792d20c8ddc13d96787a0205603bc5c2d
Tests for ZIPoisson
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -2,7 +2,12 @@ from __future__ import division\n__all__ = [\"PoissonZeroInflated\"]\n-from statsmodels.discrete.discrete_model import CountModel\n+import numpy ...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Tests for ZIPoisson
641,860
13.06.2017 17:50:43
-10,800
62a60fcbbcb947e08d2ed4d5b9adbda0acfb7704
Implemented score for ZIPoisson and tests
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -38,7 +38,9 @@ class GenericZeroInflated(CountModel):\nmissing=missing, **kwargs)\nif exog_infl is None:\n- exog_infl = np.ones((endog.size, 1))\n+ self.exog_i...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Implemented score for ZIPoisson and tests
641,860
17.06.2017 18:20:05
-10,800
133da3525a621fbcfb68ca9be4bbfc276b75e85e
Fixed score, added hessian, added predict
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -233,13 +233,121 @@ class PoissonZeroInflated(GenericZeroInflated):\ndldp_nonzero = score_main[nonzero_idx].sum(0)\ndldp = dldp_zero + dldp_nonzero\n- dldw_zer...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Fixed score, added hessian, added predict
641,860
20.06.2017 01:01:47
-10,800
1d801846135d1f1c9a8ed85d332510b4663cb342
Refactored predict, added result class
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -4,8 +4,13 @@ __all__ = [\"PoissonZeroInflated\"]\nimport numpy as np\nimport statsmodels.base.model as base\n+import statsmodels.base.wrapper as wrap\n+import...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Refactored predict, added result class
641,860
22.06.2017 13:55:00
-10,800
7f018a2a1eb7e41042019db41d1004cc296839d1
Added formulas and description, changed params positions
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -27,6 +27,8 @@ class GenericZeroInflated(CountModel):\nA reference to the endogenous response variable\nexog : array\nA reference to the exogenous design.\n+ e...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Added formulas and description, changed params positions
641,860
22.06.2017 16:34:43
-10,800
f38f2d88a66511c4df233600e2cf11099c7e3b1e
Generalization for score
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -194,7 +194,32 @@ class GenericZeroInflated(CountModel):\nThe score vector of the model, i.e. the first derivative of the\nloglikelihood function, evaluated at...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Generalization for score
641,860
23.06.2017 00:00:19
-10,800
9b653216edf0216dbfd048fce9191ce811a1983b
Partial implementation for generic hessian
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -221,7 +221,7 @@ class GenericZeroInflated(CountModel):\nreturn np.concatenate((dldw, dldp))\n- def hessian(self, params):\n+ def _hessian_part(self, params):\...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Partial implementation for generic hessian
641,860
23.06.2017 13:31:31
-10,800
bfab0ec6b1b890d7a809c56d20f28ef0989507da
Reorganized hessian structure
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -221,7 +221,10 @@ class GenericZeroInflated(CountModel):\nreturn np.concatenate((dldw, dldp))\n- def _hessian_part(self, params):\n+ def _hessian_partly(self, ...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Reorganized hessian structure
641,860
23.06.2017 17:38:13
-10,800
138d407994a99f3015363a22867d10d1ef8eb54f
Added possibility to use Logit and Probit inflation
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -8,7 +8,7 @@ import statsmodels.base.wrapper as wrap\nimport statsmodels.regression.linear_model as lm\nfrom statsmodels.discrete.discrete_model import (Discre...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Added possibility to use Logit and Probit inflation
641,860
23.06.2017 17:44:19
-10,800
88cdadf4f22b2901c659bec640f66d383c1b1e16
Added dtype for llf in evaluating
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -114,7 +114,7 @@ class GenericZeroInflated(CountModel):\nzero_idx = np.nonzero(y == 0)[0]\nnonzero_idx = np.nonzero(y)[0]\n- llf = np.zeros_like(y)\n+ llf = np...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Added dtype for llf in evaluating
641,860
25.06.2017 12:09:51
-10,800
dd047eeb78523381797499f259ff1ccef6e67620
Added inflation parameters to output
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -56,6 +56,11 @@ class GenericZeroInflated(CountModel):\nelse:\nself.k_exog = exog.shape[1]\n+ self.k_extra = self.k_inflate\n+ self.exog_names.insert(0, 'infla...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Added inflation parameters to output
641,860
03.07.2017 18:44:14
-10,800
df39ddce44a82440bad7210f3c7e4f28e97cb0d6
Added different score for logit and probit inflation
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -39,7 +39,7 @@ class GenericZeroInflated(CountModel):\n\"\"\" + base._missing_param_doc}\ndef __init__(self, endog, exog, exog_infl=None, offset=None,\n- expos...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Added different score for logit and probit inflation
641,860
03.07.2017 20:12:38
-10,800
3baf3a5d53779b4cab6b198b229962e1cf35b1b2
Fix logpmf and argchech in ZIP distribution
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -38,6 +38,7 @@ class GenericZeroInflated(CountModel):\nequal to 1.\n\"\"\" + base._missing_param_doc}\n+\ndef __init__(self, endog, exog, exog_infl=None, offse...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Fix logpmf and argchech in ZIP distribution
641,860
04.07.2017 15:21:06
-10,800
6a015e904a004a23a85e48d1cf8deff383d61583
Own hessian and score for probit and logit inflation
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -14,6 +14,7 @@ from statsmodels.distributions import zipoisson\nfrom statsmodels.tools.numdiff import (approx_fprime, approx_hess,\napprox_hess_cs, approx_fpri...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Own hessian and score for probit and logit inflation
641,860
05.07.2017 00:56:34
-10,800
a972910b1a3206dfb4d7b67606111e1362453c07
Added tests for probit inflation
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -13,6 +13,7 @@ from statsmodels.discrete.discrete_model import (DiscreteModel, CountModel,\nfrom statsmodels.distributions import zipoisson\nfrom statsmodels.t...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Added tests for probit inflation
641,860
18.07.2017 17:36:37
-10,800
b57728b558c281488030462621e544680b9b4a06
Refactored zipoisson distribution
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -424,7 +424,8 @@ class PoissonZeroInflated(GenericZeroInflated):\nexog_infl=exog_infl,\nexposure=exposure,\nmissing=missing, **kwargs)\n- self.model_main = Poi...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Refactored zipoisson distribution
641,860
18.07.2017 18:13:59
-10,800
827db6f3baf5cd6197852acc4ba43ecd73ea6ec9
Added test with offset for ZIP
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/tests/results/results_discrete.py", "new_path": "statsmodels/discrete/tests/results/results_discrete.py", "diff": "@@ -1020,3 +1020,18 @@ class RandHIE(object):\n[ 1.46553, 1.499208]]\nself.aic = 114024.1\nself.bic = 114071.6\n+\n+ def zer...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Added test with offset for ZIP
641,860
19.07.2017 15:27:24
-10,800
9cfe7a5139d61f832c09fdff6c8dd199ea13a269
Added _lazywhere copy to compat.scipy
[ { "change_type": "MODIFY", "old_path": "statsmodels/compat/scipy.py", "new_path": "statsmodels/compat/scipy.py", "diff": "@@ -206,3 +206,47 @@ def _next_regular(target):\nif p5 < match:\nmatch = p5\nreturn match\n+\n+def _valarray(shape, value=np.nan, typecode=None):\n+ \"\"\"Return an array of all ...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Added _lazywhere copy to compat.scipy
641,860
20.07.2017 16:41:08
-10,800
bf2f9ab98f526e8d3a1554b4b1773a36e2589c5d
Added test for mean and variance
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -368,7 +368,6 @@ class GenericZeroInflated(CountModel):\nelif self.infl == 'probit':\nraise NotImplemented('Predict for Probit inflation not implemented')\n-\n...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Added test for mean and variance
641,860
21.07.2017 14:27:37
-10,800
e2e462c9f5944698fbf52d83d8924224b4fd0c51
Fixed problem in tests
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/tests/test_count_model.py", "new_path": "statsmodels/discrete/tests/test_count_model.py", "diff": "@@ -109,9 +109,10 @@ class TestZeroInflatedModel_predict(object):\nexog = np.ones((nobs, 2))\nexog[:nobs//2, 1] = 2\nmu_true = exog.dot(expe...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Fixed problem in tests
641,860
21.07.2017 17:03:28
-10,800
a32a0363b37be69ac26adb9c26e6e46971a0ceac
Added test for fit_regularized
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -176,6 +176,12 @@ class GenericZeroInflated(CountModel):\nmaxiter='defined_by_method', full_output=1, disp=1, callback=None,\nalpha=0, trim_mode='auto', auto_t...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Added test for fit_regularized
641,860
10.08.2017 16:06:59
-10,800
cad5da790cf625a2d57ffb9b6cadca058c20cf22
Added ZIGP-p
[ { "change_type": "MODIFY", "old_path": "statsmodels/api.py", "new_path": "statsmodels/api.py", "diff": "@@ -15,7 +15,7 @@ from .discrete.discrete_model import (Poisson, Logit, Probit,\nMNLogit, NegativeBinomial,\nGeneralizedPoisson,\nNegativeBinomialP)\n-from .discrete.count_model import (PoissonZer...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Added ZIGP-p
641,860
11.08.2017 12:53:23
-10,800
e21f59f310a504d9e938b3b6d5d10e7d878881bc
Implemented ZIGP-p distribution, refactored predict prob for ZI models
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -390,11 +390,7 @@ class GenericZeroInflated(CountModel):\nelif which == 'prob-zero':\nreturn prob_zero\nelif which == 'prob':\n- counts = np.atleast_2d(np.aran...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Implemented ZIGP-p distribution, refactored predict prob for ZI models
641,860
14.08.2017 11:45:38
-10,800
6da65e3edd109083d6dad78f4b14ef8829397571
Refactored ZIGP-p
[ { "change_type": "MODIFY", "old_path": "statsmodels/api.py", "new_path": "statsmodels/api.py", "diff": "@@ -15,7 +15,8 @@ from .discrete.discrete_model import (Poisson, Logit, Probit,\nMNLogit, NegativeBinomial,\nGeneralizedPoisson,\nNegativeBinomialP)\n-from .discrete.count_model import (ZeroInflat...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Refactored ZIGP-p
641,860
14.08.2017 11:52:28
-10,800
feb1b4bddebf5552aaa7f97185b20fc1b64c092e
Refactored tests for ZI models
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/tests/test_count_model.py", "new_path": "statsmodels/discrete/tests/test_count_model.py", "diff": "@@ -7,19 +7,7 @@ from numpy.testing import (assert_, assert_raises, assert_almost_equal,\nimport statsmodels.api as sm\nfrom .results.result...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Refactored tests for ZI models
641,860
14.08.2017 13:12:58
-10,800
47f8a72b2bff74c14db00f0dd12d5a2dcaa630f7
Fixed problem with parameters in output
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -375,7 +375,7 @@ class GenericZeroInflated(CountModel):\nelif self.infl == 'probit':\nraise NotImplemented('Predict for Probit inflation not implemented')\n- l...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Fixed problem with parameters in output
641,860
14.08.2017 23:59:25
-10,800
510af8992539739ee4216aa7111746b0bace1d83
Implemented tests for ZIGP model
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -153,7 +153,6 @@ class GenericZeroInflated(CountModel):\noffset = getattr(self, \"offset\", 0) + getattr(self, \"exposure\", 0)\nif np.size(offset) == 1 and of...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Implemented tests for ZIGP model
641,860
23.08.2017 14:23:58
-10,800
d6c3d657604a9c9c441506283b354389aaade7be
Added tests for predict ZiNBP, ZIP models
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -559,10 +559,11 @@ class ZeroInflatedGeneralizedPoissonResults(CountResults):\n@cache_readonly\ndef _dispersion_factor(self):\n+ p = self.model.model_main.para...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Added tests for predict ZiNBP, ZIP models
641,860
23.08.2017 18:31:59
-10,800
bc177e6749d0df038937ba6707e31bd569ea4403
Implemented ZINB-P model
[ { "change_type": "MODIFY", "old_path": "statsmodels/api.py", "new_path": "statsmodels/api.py", "diff": "@@ -16,7 +16,8 @@ from .discrete.discrete_model import (Poisson, Logit, Probit,\nGeneralizedPoisson,\nNegativeBinomialP)\nfrom .discrete.count_model import (ZeroInflatedPoisson,\n- ZeroInflatedGen...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Implemented ZINB-P model
641,860
24.08.2017 01:15:04
-10,800
a0b0ab73d647fbe17a8a9855d986131665086357
Implemented tests for ZINB, refactored for ZIP, ZIGP
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -156,10 +156,10 @@ class GenericZeroInflated(CountModel):\noffset = getattr(self, \"offset\", 0) + getattr(self, \"exposure\", 0)\nif np.size(offset) == 1 and ...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Implemented tests for ZINB, refactored for ZIP, ZIGP
641,860
26.08.2017 18:35:14
-10,800
35d254eec99d956e585f874e510b382009097681
Implemented tests for ZiNBP predict probabilities
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -137,7 +137,7 @@ class GenericZeroInflated(CountModel):\ny = self.endog\nw = self.model_infl.predict(params_infl)\n- w[w >= 1.] = np.nextafter(1, 0)\n+ w = np....
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Implemented tests for ZiNBP predict probabilities
641,860
28.08.2017 14:58:30
-10,800
62c191bb04e1f667aac20d80bd01f606155a32c0
Clipped zero value for w
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -137,7 +137,7 @@ class GenericZeroInflated(CountModel):\ny = self.endog\nw = self.model_infl.predict(params_infl)\n- w = np.clip(w, 0., 1 - np.finfo(float).eps...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Clipped zero value for w
641,860
28.08.2017 21:51:04
-10,800
556f253631c6bfcddb73d7aed9b1f329b9ebbad0
Improved docs for zero-inflated models
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -349,10 +349,29 @@ class GenericZeroInflated(CountModel):\n\"\"\"\nPredict response variable of a count model given exogenous variables.\n+ Parameters\n+ -----...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Improved docs for zero-inflated models
641,860
29.08.2017 15:10:22
-10,800
2a598f8e01267b33845f1de35507b41a1ad4a8ec
Changed way to find start params
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -156,8 +156,7 @@ class GenericZeroInflated(CountModel):\noffset = getattr(self, \"offset\", 0) + getattr(self, \"exposure\", 0)\nif np.size(offset) == 1 and of...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Changed way to find start params
641,860
29.08.2017 20:07:43
-10,800
ce33dcdf864a7b64f2f254b8ddd7a0c79ad3c1f1
Fixed problem with ZINB-P start_params
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -630,9 +630,8 @@ class ZeroInflatedNegativeBinomialP(GenericZeroInflated):\nreturn self.distribution.pmf(counts, mu, params_main[-1], p, w)\ndef _get_start_par...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Fixed problem with ZINB-P start_params
641,860
30.08.2017 21:19:49
-10,800
14ce719356fe625de685ba27bebaa9daeaa7b8f1
Refactored Generic zi model
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -5,6 +5,7 @@ __all__ = [\"ZeroInflatedPoisson\", \"ZeroInflatedGeneralizedPoisson\",\nimport numpy as np\n+import pandas as pd\nimport statsmodels.base.model a...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Refactored Generic zi model
641,860
31.08.2017 00:38:58
-10,800
eb42b38e3ddc3026f4fd8356f04f318b2e945e2a
Refactored predict for zero-inflated models
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -399,10 +399,7 @@ class GenericZeroInflated(CountModel):\nparams_infl = params[:self.k_inflate]\nparams_main = params[self.k_inflate:]\n- if self.infl == 'logi...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Refactored predict for zero-inflated models
641,860
31.08.2017 11:09:47
-10,800
30c350a901e91d14390f8b2b41a37462ec853dac
Added offset and exposure for _predict_prob
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -224,6 +224,7 @@ class GenericZeroInflated(CountModel):\ndef score_obs(self, params):\n\"\"\"\nGeneric Zero Inflated model score (gradient) vector of the log-l...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Added offset and exposure for _predict_prob
641,860
31.08.2017 23:14:44
-10,800
fd921ec9e13d729b0452614c2ef690358d469e53
Removed mean from prob_main
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -398,7 +398,7 @@ class GenericZeroInflated(CountModel):\nparams_infl = params[:self.k_inflate]\nparams_main = params[self.k_inflate:]\n- prob_main = 1 - self.m...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Removed mean from prob_main
641,860
01.09.2017 00:05:08
-10,800
1a0d699d485e32c883d181e9e51739c32c4ad8cd
Fixed bug with 1d exog_infl in predict_prob and decreased rtol and atol in few tests
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -503,11 +503,20 @@ class ZeroInflatedPoisson(GenericZeroInflated):\nparams_main = params[self.k_inflate:]\ncounts = np.atleast_2d(np.arange(0, np.max(self.endo...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Fixed bug with 1d exog_infl in predict_prob and decreased rtol and atol in few tests
641,971
27.08.2017 16:22:26
14,400
ec68da350f21ec4501f7fc4742e6277d6bb8419e
BUG: update _get_init_kwds in GPP and NBP
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/discrete_model.py", "new_path": "statsmodels/discrete/discrete_model.py", "diff": "@@ -1218,6 +1218,11 @@ class GeneralizedPoisson(CountModel):\nself.k_extra = 1\nself._transparams = False\n+ def _get_init_kwds(self):\n+ kwds = super(Gener...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
BUG: update _get_init_kwds in GPP and NBP
641,971
06.09.2017 11:48:40
14,400
6b2b6568d5d394b06b5efff941e12a8c95043dc8
BUG: quickfix callback in countmodels, see TST: test for zeroinflated with scipy minimize
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -166,9 +166,14 @@ class GenericZeroInflated(CountModel):\nif np.size(offset) == 1 and offset == 0:\noffset = None\nstart_params = self._get_start_params()\n+\n...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
BUG: quickfix callback in countmodels, see #3895, TST: test for zeroinflated with scipy minimize
641,971
06.09.2017 11:50:59
14,400
e65dd27e04fff50e5bcd98360f9eff2b60400a40
REF/BUG: add init-keys support in zero-inflated, fix extra exog in llnull
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -92,6 +92,9 @@ class GenericZeroInflated(CountModel):\nself.exog_names.insert(0, 'inflate_x%d' % i)\nself.exog_infl = np.asarray(self.exog_infl, dtype=np.float...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
REF/BUG: add init-keys support in zero-inflated, fix extra exog in llnull
641,971
06.09.2017 15:04:06
14,400
4e50494d8e3a296fb8eac749a9c3d0cce880f56e
TST: refactor, extend tests for init_keys and null model
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/tests/test_count_model.py", "new_path": "statsmodels/discrete/tests/test_count_model.py", "diff": "@@ -41,6 +41,24 @@ class CheckGeneric(object):\nassert_allclose(res_reg.params[2:], self.res1.params[2:],\natol=5e-2, rtol=5e-2)\n+ def test...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
TST: refactor, extend tests for init_keys and null model
641,971
06.09.2017 16:59:56
14,400
941aaa1753bf75ec35b190b9c5d8f64b4f9fc663
REF: exog_names from submodel, test with pandas data
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -82,14 +82,8 @@ class GenericZeroInflated(CountModel):\nself.inflation = inflation\nself.k_extra = self.k_inflate\n- if type(self.exog_infl) is pd.DataFrame:\n...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
REF: exog_names from submodel, test with pandas data
641,971
06.09.2017 20:53:08
14,400
2f267fdb7615e548cc462d496066fad17d4c61cd
BUG: fix exposure for predict (needs refactor)
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -82,6 +82,10 @@ class GenericZeroInflated(CountModel):\nself.inflation = inflation\nself.k_extra = self.k_inflate\n+ if len(self.exog) != len(self.exog_infl):\...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
BUG: fix exposure for predict (needs refactor)
641,971
17.09.2017 11:06:09
14,400
a147b3dc7430d905352734ec07054d4d46a102c3
TST: add predict tests for ZeroInflatedNegativeBinomialP
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/tests/test_count_model.py", "new_path": "statsmodels/discrete/tests/test_count_model.py", "diff": "+\n+from __future__ import division\nimport os\nimport numpy as np\nfrom numpy.testing import (assert_, assert_raises, assert_almost_equal,\...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
TST: add predict tests for ZeroInflatedNegativeBinomialP
641,971
17.09.2017 11:11:37
14,400
75cd3e8e91b904a5051ea0393d6f64fa3d21ac39
ENH: add diagnostics_count (not public), see
[ { "change_type": "ADD", "old_path": null, "new_path": "statsmodels/discrete/_diagnostics_count.py", "diff": "+# -*- coding: utf-8 -*-\n+\"\"\"\n+Created on Fri Sep 15 12:53:45 2017\n+\n+Author: Josef Perktold\n+\"\"\"\n+\n+from __future__ import division\n+\n+import numpy as np\n+from scipy import s...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
ENH: add diagnostics_count (not public), see #130, #3904
641,971
17.09.2017 11:26:56
14,400
af94599b85ab8e0c874ecc7f79b4204becfb13f0
BUG: fix exog in predic prob in NegativeBinomialP closes
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/discrete_model.py", "new_path": "statsmodels/discrete/discrete_model.py", "diff": "@@ -3088,16 +3088,15 @@ class NegativeBinomialP(CountModel):\nreturn linpred\nelif which =='prob':\ncounts = np.atleast_2d(np.arange(0, np.max(self.endog)+1...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
BUG: fix exog in predic prob in NegativeBinomialP closes #3914
641,971
20.09.2017 13:53:53
14,400
512a85ae36cdafeb524e0c424fe21f20b78b26cd
DOCS/REf: add count to docs, update about.rst, rearrange ZI arguments
[ { "change_type": "MODIFY", "old_path": "docs/source/about.rst", "new_path": "docs/source/about.rst", "diff": "@@ -50,7 +50,7 @@ We are grateful for the financial support that we obtained for the\ndevelopment of statsmodels:\nGoogle `www.google.com <https://www.google.com/>`_ : Google Summer of Code\...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
DOCS/REf: add count to docs, update about.rst, rearrange ZI arguments
641,971
20.09.2017 15:08:15
14,400
6e999bf2f0ce0b8a58be57e16520cab5931c308c
DOC/CLN: doc fixes and some cleanup [ci skip]
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/count_model.py", "new_path": "statsmodels/discrete/count_model.py", "diff": "@@ -5,7 +5,6 @@ __all__ = [\"ZeroInflatedPoisson\", \"ZeroInflatedGeneralizedPoisson\",\nimport numpy as np\n-import pandas as pd\nimport statsmodels.base.model a...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
DOC/CLN: doc fixes and some cleanup [ci skip]
641,971
21.09.2017 11:16:24
14,400
0ea69be3d98a2c9c2af91723aa161ac99adaa931
REF/BUG: CountModel promote dtype of endog, exog to float64 see
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/discrete_model.py", "new_path": "statsmodels/discrete/discrete_model.py", "diff": "@@ -725,6 +725,13 @@ class CountModel(DiscreteModel):\nif exposure is None:\ndelattr(self, 'exposure')\n+ # promote dtype to float64 if needed\n+ dt = np.pr...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
REF/BUG: CountModel promote dtype of endog, exog to float64 see #3919
641,971
21.09.2017 11:20:33
14,400
fe80d95f84b6e04da0e21b16ee74e9a91f9e2eb3
BUG/REF: NegativeBinomial, adjust start_params for transparams see
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/discrete_model.py", "new_path": "statsmodels/discrete/discrete_model.py", "diff": "@@ -2634,7 +2634,7 @@ class NegativeBinomial(CountModel):\n# Note: don't let super handle robust covariance because it has\n# transformed params\n-\n+ self....
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
BUG/REF: NegativeBinomial, adjust start_params for transparams see #3918
641,971
21.09.2017 11:22:22
14,400
82338aff2e46ba0d16420f1958f955dbe7f09cbf
REF/ENH: discrete add _get_start_params_null for llnull (Poisson, NB)
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/discrete_model.py", "new_path": "statsmodels/discrete/discrete_model.py", "diff": "@@ -1000,6 +1000,13 @@ class Poisson(CountModel):\n#np.sum(stats.poisson.logpmf(endog, np.exp(XB)))\nreturn -np.exp(XB) + endog*XB - gammaln(endog+1)\n+ def...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
REF/ENH: discrete add _get_start_params_null for llnull (Poisson, NB)
641,971
21.09.2017 11:26:58
14,400
96faa7c334844702354bf2a7ea5014c0161e593d
BUG/REF: GeneralizedPoisson.hessian numerical robustness see
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/discrete_model.py", "new_path": "statsmodels/discrete/discrete_model.py", "diff": "@@ -1522,7 +1522,7 @@ class GeneralizedPoisson(CountModel):\nhess_arr[:-1,-1] = dldpda\n# for dl/dalpha dalpha\n- dldada = mu_p**2 * (3 * y / a1**2 - y**2 *...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
BUG/REF: GeneralizedPoisson.hessian numerical robustness see #3919
641,971
21.09.2017 13:26:44
14,400
f7143a2fbf12325378de8bd05b5b7b4246e91858
BUG/TST: fix null start_params with offset/exposure, add tests
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/discrete_model.py", "new_path": "statsmodels/discrete/discrete_model.py", "diff": "@@ -1003,7 +1003,7 @@ class Poisson(CountModel):\ndef _get_start_params_null(self):\noffset = getattr(self, \"offset\", 0)\nexposure = getattr(self, \"expos...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
BUG/TST: fix null start_params with offset/exposure, add tests
641,971
21.09.2017 14:22:24
14,400
bff0a25ee4f625447d81837b14d2036aa057f37b
REF: start_params use arrays, convert lists
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/discrete_model.py", "new_path": "statsmodels/discrete/discrete_model.py", "diff": "@@ -2648,7 +2648,7 @@ class NegativeBinomial(CountModel):\nparams.append(a)\nelse: #self.loglike_method == 'nb1':\nparams.append((resid**2 / mu - 1).mean())...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
REF: start_params use arrays, convert lists
641,971
21.09.2017 14:23:50
14,400
9d2587847909d2e0b209823f702bbad9311c5939
ENH: null start_params for GPP and NBP
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/discrete_model.py", "new_path": "statsmodels/discrete/discrete_model.py", "diff": "@@ -1301,6 +1301,20 @@ class GeneralizedPoisson(CountModel):\nreturn (np.log(mu) + (endog - 1) * np.log(a2) - endog *\nnp.log(a1) - gammaln(endog + 1) - a2 ...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
ENH: null start_params for GPP and NBP
641,971
21.09.2017 16:43:15
14,400
3306615dc0d756329a223b5ac881a5e14c5c9eea
REF: try different null model optimizer, adjust unit tests
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/discrete_model.py", "new_path": "statsmodels/discrete/discrete_model.py", "diff": "@@ -3247,7 +3247,10 @@ class DiscreteResults(base.LikelihoodModelResults):\nelse:\nsp_null = None\n- res_null = mod_null.fit(start_params=sp_null, method='b...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
REF: try different null model optimizer, adjust unit tests
641,971
21.09.2017 22:26:40
14,400
2e91993e5e47c35ac90af5fe773bba40f9507709
ENH: add set_null_options to allow user control for Null model
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/discrete_model.py", "new_path": "statsmodels/discrete/discrete_model.py", "diff": "@@ -3228,6 +3228,45 @@ class DiscreteResults(base.LikelihoodModelResults):\ndef llr_pvalue(self):\nreturn stats.chisqprob(self.llr, self.df_model)\n+ def se...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
ENH: add set_null_options to allow user control for Null model
641,971
22.09.2017 09:58:59
14,400
218ad92850f14c7bf6ae5a7ea285af9f8e0624fa
DOC: minor docstring fixes [ci skip]
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/discrete_model.py", "new_path": "statsmodels/discrete/discrete_model.py", "diff": "@@ -114,6 +114,17 @@ _l1_results_attr = \"\"\" nnz_params : Integer\ntrimmed : Boolean array\ntrimmed[i] == True if the ith parameter was trimmed from the m...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
DOC: minor docstring fixes [ci skip]
641,971
23.09.2017 15:01:55
14,400
774db92950b372c1bb27ac15a458eaac3cd4462c
ENH: add optim_kwds_prelim to count models in discrete_model see
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/discrete_model.py", "new_path": "statsmodels/discrete/discrete_model.py", "diff": "@@ -1355,8 +1355,11 @@ class GeneralizedPoisson(CountModel):\noffset = getattr(self, \"offset\", 0) + getattr(self, \"exposure\", 0)\nif np.size(offset) == ...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
ENH: add optim_kwds_prelim to count models in discrete_model see #3925
641,971
23.09.2017 16:16:41
14,400
d501439021b93a69080f34f7e7f8bfae56429c66
TST: adjust tests, precision, and prelim method in GPP
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/tests/test_discrete.py", "new_path": "statsmodels/discrete/tests/test_discrete.py", "diff": "@@ -1764,7 +1764,7 @@ class TestGeneralizedPoisson_underdispersion(object):\nres = self.res\nres2 = res.model.fit(start_params=res.params, method=...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
TST: adjust tests, precision, and prelim method in GPP
641,971
23.09.2017 16:17:42
14,400
c5e10f1c9949edfce3943683f566f56f2b7100e3
REF: Poisson.fit use null params as start_params
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/discrete_model.py", "new_path": "statsmodels/discrete/discrete_model.py", "diff": "@@ -1022,6 +1022,12 @@ class Poisson(CountModel):\ndef fit(self, start_params=None, method='newton', maxiter=35,\nfull_output=1, disp=1, callback=None, **kw...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
REF: Poisson.fit use null params as start_params
641,971
24.09.2017 00:02:04
14,400
f024c3343ea768d9528dce1bfd571b5f40e7430d
TST: adjust tests in test_discrete and test_diagnostic
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/tests/test_diagnostic.py", "new_path": "statsmodels/discrete/tests/test_diagnostic.py", "diff": "@@ -55,7 +55,7 @@ class TestCountDiagnostic(object):\n# regression test\ntzi3_1 = (0.79863597832443878, 0.67077736750318928, 2, 2)\n- assert_a...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
TST: adjust tests in test_discrete and test_diagnostic
641,971
24.09.2017 10:18:33
14,400
a97b977a208ef4a629713e4df15acf7c586f0c32
ENH: add moment estimate for alpha in GPP, NBP
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/discrete_model.py", "new_path": "statsmodels/discrete/discrete_model.py", "diff": "@@ -1323,17 +1323,23 @@ class GeneralizedPoisson(CountModel):\ndef _get_start_params_null(self):\noffset = getattr(self, \"offset\", 0)\nexposure = getattr(...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
ENH: add moment estimate for alpha in GPP, NBP
641,971
24.09.2017 13:53:15
14,400
df8c9c2e2b68d680bcf2905a6c33e275604ad58e
TST: TestZeroInflatedNegativeBinomialP cheat for convergence
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/tests/test_count_model.py", "new_path": "statsmodels/discrete/tests/test_count_model.py", "diff": "@@ -340,8 +340,12 @@ class TestZeroInflatedNegativeBinomialP(CheckGeneric):\ncls.endog = data.endog\nexog = sm.add_constant(data.exog[:,1], ...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
TST: TestZeroInflatedNegativeBinomialP cheat for convergence
641,971
24.09.2017 14:43:28
14,400
5ad60c62a8015221f491d61b9a389b43e69e142b
TST: test_optim_kwds_prelim: use 'nm' for Poisson, bfgs fails in older scipy
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/tests/test_discrete.py", "new_path": "statsmodels/discrete/tests/test_discrete.py", "diff": "@@ -2238,7 +2238,8 @@ def test_optim_kwds_prelim():\n# offset currently not used\noffset = None\n- optim_kwds_prelim = dict(method='bfgs', maxiter...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
TST: test_optim_kwds_prelim: use 'nm' for Poisson, bfgs fails in older scipy
641,971
24.09.2017 17:45:31
14,400
76c8479bc91e751eb2e692eefc634a23f565e6ef
ENH: NegativeBinomial: add _estimate_dispersion as start_params for alpha
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/discrete_model.py", "new_path": "statsmodels/discrete/discrete_model.py", "diff": "@@ -1333,6 +1333,8 @@ class GeneralizedPoisson(CountModel):\nreturn np.array(params)\n+ _get_start_params_null.__doc__ = _get_start_params_null_docs\n+\ndef...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
ENH: NegativeBinomial: add _estimate_dispersion as start_params for alpha
641,971
24.09.2017 18:30:30
14,400
f5ef296e8ce665c3ddc3ca655cbc7beffe33bbfc
TST: tighten gtol for bfgs in unit tests
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/tests/test_sandwich_cov.py", "new_path": "statsmodels/discrete/tests/test_sandwich_cov.py", "diff": "@@ -374,7 +374,7 @@ class TestNegbinClu(CheckCountRobustMixin):\ndef setup_class(cls):\ncls.res2 = results_st.results_negbin_clu\nmod = sm...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
TST: tighten gtol for bfgs in unit tests
642,065
20.08.2017 14:12:16
18,000
cbb8cebe7d267136138c435c797fd37bdf2d7967
DOC: print is now a function
[ { "change_type": "MODIFY", "old_path": "docs/source/gettingstarted.rst", "new_path": "docs/source/gettingstarted.rst", "diff": "@@ -15,6 +15,7 @@ few modules and functions:\n.. ipython:: python\n+ from __future__ import print_function\nimport statsmodels.api as sm\nimport pandas\nfrom patsy import d...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
DOC: print is now a function
641,904
28.05.2017 10:45:33
25,200
b02395a0602f168252d7f7bb6ab2b8cd3f7ccb03
Replace * imports with specific imports; mostly restricted to test and sandbox modules
[ { "change_type": "MODIFY", "old_path": "statsmodels/robust/tests/test_scale.py", "new_path": "statsmodels/robust/tests/test_scale.py", "diff": "@@ -4,8 +4,7 @@ Test functions for models.robust.scale\nimport numpy as np\nfrom numpy.random import standard_normal\n-from numpy.testing import assert_almo...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Replace * imports with specific imports; mostly restricted to test and sandbox modules
641,904
28.05.2017 13:38:46
25,200
da819d275805285430c1c92cffcddcc21c3e539f
Avoid backslashes in imports
[ { "change_type": "MODIFY", "old_path": "statsmodels/sandbox/tsa/examples/ex_mle_garch.py", "new_path": "statsmodels/sandbox/tsa/examples/ex_mle_garch.py", "diff": "@@ -70,9 +70,10 @@ import numdifftools as ndt\nimport statsmodels.api as sm\nfrom statsmodels.sandbox import tsa\n-from statsmodels.sand...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Avoid backslashes in imports
641,904
28.05.2017 22:16:49
25,200
f7e5abb569a2d544787d9a837ac3f0c0784e6553
Fix missed import of datamlw.data
[ { "change_type": "MODIFY", "old_path": "statsmodels/sandbox/tests/test_pca.py", "new_path": "statsmodels/sandbox/tests/test_pca.py", "diff": "@@ -13,7 +13,7 @@ from statsmodels.sandbox import tools\nfrom statsmodels.sandbox.tools import pca, pcasvd\nfrom statsmodels.tsa.arima_process import arma_imp...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Fix missed import of datamlw.data
641,904
30.06.2017 11:30:19
25,200
abbd8af49ffdf8b0544dd83a2a5018a152a7413d
Cleanup non-standard imports
[ { "change_type": "MODIFY", "old_path": "statsmodels/tsa/vector_ar/var_model.py", "new_path": "statsmodels/tsa/vector_ar/var_model.py", "diff": "@@ -7,16 +7,13 @@ Lutkepohl (2005) New Introduction to Multiple Time Series Analysis\n\"\"\"\nfrom __future__ import division, print_function\n-from statsmo...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Cleanup non-standard imports
641,904
09.07.2017 16:43:11
25,200
98e41ff0fab1e502389db7c1a80af05ce92b7d2d
Flake8 fixes, mostly whitespace after commas A handful of TODO notes for things that I had to restrain myself to avoid doing in this PR The only non-aesthetic edit made here is deleting forecast_cov, which was identical to mse
[ { "change_type": "MODIFY", "old_path": "statsmodels/tsa/vector_ar/var_model.py", "new_path": "statsmodels/tsa/vector_ar/var_model.py", "diff": "@@ -75,6 +75,7 @@ def ma_rep(coefs, maxn=10):\nreturn phis\n+\ndef is_stable(coefs, verbose=False):\n\"\"\"\nDetermine stability of VAR(p) system by examini...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Flake8 fixes, mostly whitespace after commas A handful of TODO notes for things that I had to restrain myself to avoid doing in this PR The only non-aesthetic edit made here is deleting forecast_cov, which was identical to mse
641,904
10.07.2017 10:28:11
25,200
252bf040d2808f6f3bb0b8d0240861ab407e631f
alias mse to forecast_cov instead of the other way around
[ { "change_type": "MODIFY", "old_path": "statsmodels/tsa/vector_ar/var_model.py", "new_path": "statsmodels/tsa/vector_ar/var_model.py", "diff": "@@ -166,7 +166,7 @@ def _var_acf(coefs, sig_u):\nreturn acf\n-def mse(ma_coefs, sigma_u, steps):\n+def forecast_cov(ma_coefs, sigma_u, steps):\n\"\"\"\nComp...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
alias mse to forecast_cov instead of the other way around
641,971
25.09.2017 17:00:54
14,400
740fd15d39d24e8a9026df85b028bc59367ba7e3
CLN: test_discrete: manual cleanup (line length, empty lines, docstrings) [skip ci]
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/tests/test_discrete.py", "new_path": "statsmodels/discrete/tests/test_discrete.py", "diff": "@@ -325,6 +325,7 @@ class CheckMargEff(object):\nassert_almost_equal(me.margeff_se,\nself.res2.margeff_count_dummy_dydxmean_se, DECIMAL_4)\n+\ncla...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
CLN: test_discrete: manual cleanup (line length, empty lines, docstrings) [skip ci]
641,971
28.09.2016 00:23:58
14,400
e0ae9ae26ca287c3f07bc0e21b3b62d5e6bb8670
BUG: fix python 3 compatibility and refactoring victim
[ { "change_type": "MODIFY", "old_path": "statsmodels/sandbox/nonparametric/densityorthopoly.py", "new_path": "statsmodels/sandbox/nonparametric/densityorthopoly.py", "diff": "@@ -337,7 +337,7 @@ class DensityOrthoPoly(object):\nxeval = self._transform(xeval)\nif order is None:\norder = len(self.polys...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
BUG: fix python 3 compatibility and refactoring victim
641,971
01.08.2017 13:51:33
14,400
fc44d2440cb5499761258e898fb70a52938d60e6
BUG: IV2SLS set fvalue to nan if const_idx is None, closes
[ { "change_type": "MODIFY", "old_path": "statsmodels/sandbox/regression/gmm.py", "new_path": "statsmodels/sandbox/regression/gmm.py", "diff": "@@ -213,10 +213,15 @@ class IVRegressionResults(RegressionResults):\n@cache_readonly\ndef fvalue(self):\n+ const_idx = self.model.data.const_idx\n+ # if const...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
BUG: IV2SLS set fvalue to nan if const_idx is None, closes #3544
641,904
19.05.2017 20:38:20
25,200
c641f2669ca77e0bd37ed0b8b3fb125b9724dbf1
Remove un-picklable method in __getstate__ Add a test that fails without this fix. In particular, cov_params_func key gets set in fit_regularized. The test is taken directly from GH#2686
[ { "change_type": "MODIFY", "old_path": "statsmodels/base/tests/test_shrink_pickle.py", "new_path": "statsmodels/base/tests/test_shrink_pickle.py", "diff": "@@ -270,9 +270,22 @@ class TestPickleFormula5(TestPickleFormula2):\nself.results = sm.OLS.from_formula(\"Y ~ log(A) + B * C\", data=self.data).f...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Remove un-picklable method in __getstate__ Add a test that fails without this fix. In particular, cov_params_func key gets set in fit_regularized. The test is taken directly from GH#2686
641,971
26.09.2017 14:10:04
14,400
22b8211ecc2312de0e02c3951a62b05418e8a8ee
BUG/REF: use boolean for converged in discrete fit_regularized closes
[ { "change_type": "MODIFY", "old_path": "statsmodels/base/l1_cvxopt.py", "new_path": "statsmodels/base/l1_cvxopt.py", "diff": "@@ -122,11 +122,12 @@ def fit_l1_cvxopt_cp(\ngopt = float('nan') # Objective is non-differentiable\nhopt = float('nan')\niterations = float('nan')\n- converged = 'True' if re...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
BUG/REF: use boolean for converged in discrete fit_regularized closes #2857
641,904
11.05.2017 20:09:47
25,200
623ffb0d2c925f345d039929f32cfe7642763cc1
BUG: fix GEE resid_working to match GLM Note that at the moment, the GEE version is not getting hit in tests.
[ { "change_type": "MODIFY", "old_path": "statsmodels/genmod/generalized_estimating_equations.py", "new_path": "statsmodels/genmod/generalized_estimating_equations.py", "diff": "@@ -1471,7 +1471,7 @@ class GEEResults(base.LikelihoodModelResults):\n@cache_readonly\ndef resid_working(self):\nval = self....
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
BUG: fix GEE resid_working to match GLM Note that at the moment, the GEE version is not getting hit in tests.
641,971
28.09.2017 10:02:25
14,400
82b6c21baee053d61ce6268a390e021890c2b844
BUG: Avoid unicode names when working with np.recarray in py2 Fixes all but one of the test errors discussed in
[ { "change_type": "MODIFY", "old_path": "statsmodels/compat/numpy.py", "new_path": "statsmodels/compat/numpy.py", "diff": "@@ -43,6 +43,9 @@ from __future__ import absolute_import\nfrom .scipy import NumpyVersion\nimport numpy as np\n+import sys\n+_is_py2 = sys.version_info.major == 2\n+\nnp_matrix_r...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
BUG: Avoid unicode names when working with np.recarray in py2 Fixes all but one of the test errors discussed in #3658
641,904
03.06.2017 09:27:45
25,200
07efc1a81f1073cd1b7f3d62a736a7c92f6b5321
Change _is_py2-->PY3
[ { "change_type": "MODIFY", "old_path": "statsmodels/compat/numpy.py", "new_path": "statsmodels/compat/numpy.py", "diff": "@@ -44,7 +44,7 @@ from .scipy import NumpyVersion\nimport numpy as np\nimport sys\n-_is_py2 = sys.version_info.major == 2\n+PY3 = sys.version_info.major == 3\nnp_matrix_rank = np...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Change _is_py2-->PY3
641,971
28.09.2017 11:43:56
14,400
57ebb8d4c3be52e086d5e9d5edc6f9d2075b5316
TST: test_var remove orig_endog before pickling
[ { "change_type": "MODIFY", "old_path": "statsmodels/tsa/vector_ar/tests/test_var.py", "new_path": "statsmodels/tsa/vector_ar/tests/test_var.py", "diff": "@@ -448,6 +448,7 @@ class TestVARResults(CheckIRF, CheckFEVD):\ndef test_pickle(self):\nfh = BytesIO()\n#test wrapped results load save pickle\n+ ...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
TST: test_var remove orig_endog before pickling
641,971
28.09.2017 13:36:08
14,400
0edb9a3d364cdc165cf85fbfdbaf1d53e8f58721
REF: small import cleanup
[ { "change_type": "MODIFY", "old_path": "statsmodels/compat/numpy.py", "new_path": "statsmodels/compat/numpy.py", "diff": "@@ -40,14 +40,15 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\"\"\"\nfrom __future__ import absolute_import\n-from .scipy import NumpyVersion\nimport...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
REF: small import cleanup
641,904
01.06.2017 19:43:47
25,200
8a6794d097fd240ab21abccb32204d00561a7d0f
Avoid setting model.df_model in results.__init__ closes Test case to check that model.df_model is not changed on call to fit_regularized
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/discrete_model.py", "new_path": "statsmodels/discrete/discrete_model.py", "diff": "@@ -3646,16 +3646,14 @@ class L1CountResults(DiscreteResults):\n# entry in params has been set zero'd out.\nself.trimmed = cntfit.mle_retvals['trimmed']\nse...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Avoid setting model.df_model in results.__init__ closes #3734 Test case to check that model.df_model is not changed on call to fit_regularized
641,971
28.09.2017 20:10:14
14,400
bd285d5cb5449cc8a2a4c58eacaafa7da0b22121
TST: test_arima111_predict_exog_2127 increase tolerance closes
[ { "change_type": "MODIFY", "old_path": "statsmodels/tsa/tests/test_arima.py", "new_path": "statsmodels/tsa/tests/test_arima.py", "diff": "@@ -2110,7 +2110,7 @@ def test_arima111_predict_exog_2127():\n0.02372018, 0.02374833, 0.02367407, 0.0236443 , 0.02362868,\n0.02362312])\n- assert_allclose(predict...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
TST: test_arima111_predict_exog_2127 increase tolerance closes #3950
641,971
02.10.2017 09:44:48
14,400
bcbe2fe4044e201f4afaf9aabba8fb9b175f7552
BUG: fix MNLogit does not store design_info closes
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/discrete_model.py", "new_path": "statsmodels/discrete/discrete_model.py", "diff": "@@ -541,6 +541,8 @@ class MultinomialModel(BinaryModel):\n# repeating from upstream...\nfor key in kwargs:\n+ if key in ['design_info', 'formula']: # leave ...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
BUG: fix MNLogit does not store design_info closes #3958
642,082
26.05.2017 12:03:21
-36,000
d5c63a1abb1995661715faafdb80000e30116233
REF: remove duplicate tabular objects created when latexing summary_col output
[ { "change_type": "MODIFY", "old_path": "statsmodels/iolib/summary2.py", "new_path": "statsmodels/iolib/summary2.py", "diff": "@@ -8,6 +8,7 @@ import datetime\nimport textwrap\nfrom .table import SimpleTable\nfrom .tableformatting import fmt_latex, fmt_txt\n+import re\nclass Summary(object):\n@@ -16,...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
REF: remove duplicate tabular objects created when latexing summary_col output
641,971
02.10.2017 16:09:37
14,400
6ea8ff6bdd2150f9598ed2f4cc33632ab1bc8e06
TST: silence Warning (nobs too small in omni_normtest)
[ { "change_type": "MODIFY", "old_path": "statsmodels/iolib/tests/test_summary2.py", "new_path": "statsmodels/iolib/tests/test_summary2.py", "diff": "+import warnings\nfrom numpy.testing import assert_equal, assert_\nfrom statsmodels.regression.linear_model import OLS, add_constant\nfrom statsmodels.i...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
TST: silence Warning (nobs too small in omni_normtest)