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,971
24.10.2018 14:19:53
14,400
743eb6f9a3295fa0cf0b860221c20442ce24e44f
REF: add alpha and penalty_matrix to GAMPenalty classes, remove alpha from pirls use tools.matrix_sqrt
[ { "change_type": "MODIFY", "old_path": "statsmodels/gam/gam.py", "new_path": "statsmodels/gam/gam.py", "diff": "@@ -18,6 +18,7 @@ from statsmodels.genmod.generalized_linear_model import (GLM, GLMResults,\nfrom statsmodels.tools.sm_exceptions import PerfectSeparationError\nfrom statsmodels.base._pena...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
REF: add alpha and penalty_matrix to GAMPenalty classes, remove alpha from pirls use tools.matrix_sqrt
641,971
24.10.2018 16:55:20
14,400
79b29f39790f75a9e21ccd970135d4abbd346cbc
ENH: initial version for `predict`, and a few cleanups
[ { "change_type": "MODIFY", "old_path": "statsmodels/gam/gam.py", "new_path": "statsmodels/gam/gam.py", "diff": "@@ -31,6 +31,20 @@ class GLMGAMResults(GLMResults):\n\"\"\"\n+ def predict(self, exog=None, x=None, transform=True, **kwds):\n+ if transform is False:\n+ ex = exog\n+ else:\n+ if x is not ...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
ENH: initial version for `predict`, and a few cleanups
641,971
01.11.2018 13:39:25
14,400
d1df77582d704235ab0f1b6b090336cd9529fbd0
ENH: transformation options for UnivariateCubicSplines refactor get_prediction, improve unit test
[ { "change_type": "MODIFY", "old_path": "statsmodels/gam/gam.py", "new_path": "statsmodels/gam/gam.py", "diff": "@@ -31,7 +31,7 @@ class GLMGAMResults(GLMResults):\n\"\"\"\n- def predict(self, exog=None, x=None, transform=True, **kwds):\n+ def _tranform_predict_exog(self, exog=None, x=None, transform...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
ENH: transformation options for UnivariateCubicSplines refactor get_prediction, improve unit test
641,971
01.11.2018 19:21:46
14,400
ec1d0fc0f9575ea8d1b7daffd6ed397a087b4d1b
ENH/REF: add knot options to B-splines
[ { "change_type": "MODIFY", "old_path": "statsmodels/gam/smooth_basis.py", "new_path": "statsmodels/gam/smooth_basis.py", "diff": "@@ -40,7 +40,7 @@ def _R_compat_quantile(x, probs):\n## from patsy splines.py\n-def _eval_bspline_basis(x, knots, degree):\n+def _eval_bspline_basis(x, knots, degree, der...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
ENH/REF: add knot options to B-splines
641,971
01.11.2018 21:52:17
14,400
c8bdb40d53e73622c6dbf56534e78d3737ac76a0
ENH: add include_intercept option/default to B-splines, adjust tests
[ { "change_type": "MODIFY", "old_path": "statsmodels/gam/gam.py", "new_path": "statsmodels/gam/gam.py", "diff": "@@ -67,6 +67,7 @@ class GLMGAMResults(GLMResults):\nstandard error of linear prediction\n\"\"\"\n+ smoother = self.model.smoother\nmask = smoother.mask[variable]\ny = np.dot(smoother.basis...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
ENH: add include_intercept option/default to B-splines, adjust tests
641,971
02.11.2018 22:39:28
14,400
e8e234d64aaaca7d7e0e8fbcf9c8a14b3d81761d
BUG/ENH: fix GAM partial_values and plot, add col_names to splies
[ { "change_type": "MODIFY", "old_path": "statsmodels/gam/gam.py", "new_path": "statsmodels/gam/gam.py", "diff": "@@ -31,6 +31,7 @@ class GLMGAMResults(GLMResults):\n\"\"\"\n+\ndef _tranform_predict_exog(self, exog=None, x=None, transform=False):\nif transform is False:\nex = exog\n@@ -54,9 +55,16 @@ ...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
BUG/ENH: fix GAM partial_values and plot, add col_names to splies
641,971
03.11.2018 13:35:46
14,400
2205d5cac0726234d29cf30cc500f18d6b05a0fa
ENH: GLMGAMResults, add hat_matrix_diag, edf, fix test_significance
[ { "change_type": "MODIFY", "old_path": "statsmodels/gam/gam.py", "new_path": "statsmodels/gam/gam.py", "diff": "@@ -132,26 +132,60 @@ class GLMGAMResults(GLMResults):\nreturn fig\n- def significance_test(self, basis=None, y=None, alpha=None):\n+ def test_significance(self, smooth_index):\n\"\"\"hypo...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
ENH: GLMGAMResults, add hat_matrix_diag, edf, fix test_significance
641,971
04.11.2018 11:44:51
18,000
b536483bc233629cb578285672d1433729582706
BUG: correct GLM.estimate_scale using deviance
[ { "change_type": "MODIFY", "old_path": "statsmodels/genmod/generalized_linear_model.py", "new_path": "statsmodels/genmod/generalized_linear_model.py", "diff": "@@ -794,7 +794,7 @@ class GLM(base.LikelihoodModel):\nreturn self._estimate_x2_scale(mu)\nelif self.scaletype.lower() == 'dev':\nreturn (sel...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
BUG: correct GLM.estimate_scale using deviance
641,971
04.11.2018 11:47:42
18,000
396452bcb14abd790d0054496605d390bb27adc7
ENH/REF: contrast results: string for float df_num, df_denom
[ { "change_type": "MODIFY", "old_path": "statsmodels/stats/contrast.py", "new_path": "statsmodels/stats/contrast.py", "diff": "@@ -155,11 +155,14 @@ class ContrastResults(object):\nreturn summ\nelif hasattr(self, 'fvalue'):\n# TODO: create something nicer for these casee\n- return '<F test: F=%s, p=%...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
ENH/REF: contrast results: string for float df_num, df_denom
641,971
04.11.2018 11:48:57
18,000
58dd5d4a34036a98900f574007714072a5f407a5
ENH: base LikelihoodModelResults.wald_test add df_constraints kwd
[ { "change_type": "MODIFY", "old_path": "statsmodels/base/model.py", "new_path": "statsmodels/base/model.py", "diff": "@@ -1597,7 +1597,7 @@ class LikelihoodModelResults(Results):\n# TODO: untested for GLMs?\ndef wald_test(self, r_matrix, cov_p=None, scale=1.0, invcov=None,\n- use_f=None):\n+ use_f=N...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
ENH: base LikelihoodModelResults.wald_test add df_constraints kwd
641,971
04.11.2018 11:54:26
18,000
0fcd9e88b3f3f5d7c987dc105b54258fb3585a64
ENH: GLMGAMResults add edf correction to scale and df_resid
[ { "change_type": "MODIFY", "old_path": "statsmodels/gam/gam.py", "new_path": "statsmodels/gam/gam.py", "diff": "@@ -16,6 +16,7 @@ from scipy.stats import chi2\nfrom statsmodels.genmod.generalized_linear_model import (GLM, GLMResults,\nGLMResultsWrapper, lm, _check_convergence)\nfrom statsmodels.tool...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
ENH: GLMGAMResults add edf correction to scale and df_resid
641,971
04.11.2018 22:24:30
18,000
66f2b20613c615995f7a108968d64a4d833d9f21
fix contrast summary formatting
[ { "change_type": "MODIFY", "old_path": "statsmodels/stats/contrast.py", "new_path": "statsmodels/stats/contrast.py", "diff": "@@ -155,14 +155,13 @@ class ContrastResults(object):\nreturn summ\nelif hasattr(self, 'fvalue'):\n# TODO: create something nicer for these casee\n- return '<F test: F=%s, p=%...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
fix contrast summary formatting
641,971
08.11.2018 18:21:21
18,000
db1da1371eb0b70696b982d17f89275111a9c0b5
BUG/ENH: B-splines use integrate simps for cov_der2, adjust test again
[ { "change_type": "MODIFY", "old_path": "statsmodels/gam/gam_penalties.py", "new_path": "statsmodels/gam/gam_penalties.py", "diff": "@@ -60,7 +60,7 @@ class UnivariateGamPenalty(Penalty):\nif alpha is None:\nalpha = self.alpha\n- if self.univariate_smoother.der2_basis_ is not None:\n+ if 0: #self.uni...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
BUG/ENH: B-splines use integrate simps for cov_der2, adjust test again
641,971
11.11.2018 12:40:56
18,000
19aab30fbd44bf173aa5dbc0069dc00870a399a4
BUG: tools.R2nparray fix intend for arrays
[ { "change_type": "MODIFY", "old_path": "tools/R2nparray/R/R2nparray.R", "new_path": "tools/R2nparray/R/R2nparray.R", "diff": "@@ -63,7 +63,7 @@ convert.data.frame <- function(X, name='default', strict=TRUE){\nconvert.numeric <- function(X, name='default', strict=TRUE) {\nif (length(X) > 1){\nhead = ...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
BUG: tools.R2nparray fix intend for arrays
641,971
20.11.2018 00:08:24
18,000
bcd188eab25e14973b07d5c156e4dbc3a7c00949
BUG: wald_test_terms: avoid creating object arrays, see
[ { "change_type": "MODIFY", "old_path": "statsmodels/base/model.py", "new_path": "statsmodels/base/model.py", "diff": "@@ -1828,7 +1828,7 @@ class LikelihoodModelResults(Results):\nindex = []\nfor name, constraint in constraints + combined_constraints + extra_constraints:\nwt = result.wald_test(const...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
BUG: wald_test_terms: avoid creating object arrays, see #5393
641,971
24.11.2018 10:01:46
18,000
fe2787728dab60bf2da33eeec97dea54e024c278
ENH: add select_penweight method
[ { "change_type": "MODIFY", "old_path": "statsmodels/gam/gam.py", "new_path": "statsmodels/gam/gam.py", "diff": "@@ -10,9 +10,8 @@ created on 08/07/2015\nfrom __future__ import division\nimport numpy as np\n-import scipy as sp\n+from scipy import optimize\nfrom statsmodels.discrete.discrete_model imp...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
ENH: add select_penweight method
641,971
24.11.2018 14:47:02
18,000
e557799247bf6b0a4df418b807be7fa195eed143
CLN: some pep-8 complaints
[ { "change_type": "MODIFY", "old_path": "statsmodels/gam/gam.py", "new_path": "statsmodels/gam/gam.py", "diff": "@@ -46,7 +46,7 @@ class GLMGAMResults(GLMResults):\nself.df_resid = self.df_resid = self.model.endog.shape[0] - edf\n# we are setting the model df for the case when super is using it\n- # ...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
CLN: some pep-8 complaints
641,971
24.11.2018 16:02:20
18,000
ed4788585b281ef807282a1500837bca78c03b65
REF/TST: keep intercept if constraints='center', fix concurvity problem in test_glm_pirls_compatibility
[ { "change_type": "MODIFY", "old_path": "statsmodels/gam/smooth_basis.py", "new_path": "statsmodels/gam/smooth_basis.py", "diff": "@@ -680,6 +680,8 @@ class BSplines(MultivariateGamSmoother):\nself.knot_kwds = knot_kwds\n# TODO: move attaching constraints to super call\nself.constraints = constraints...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
REF/TST: keep intercept if constraints='center', fix concurvity problem in test_glm_pirls_compatibility
641,971
24.11.2018 21:32:50
18,000
cde8aca05deb96fe165c13abbb67f4cac93ca462
REF/CLN: reorganize smoothbasis, remove BS (copy from patsy)
[ { "change_type": "MODIFY", "old_path": "statsmodels/gam/smooth_basis.py", "new_path": "statsmodels/gam/smooth_basis.py", "diff": "@@ -281,167 +281,6 @@ def make_poly_basis(x, degree, intercept=True):\nreturn basis, der_basis, der2_basis\n-class BS(object):\n- \"\"\"Generates a B-spline basis for ``x...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
REF/CLN: reorganize smoothbasis, remove BS (copy from patsy)
641,971
24.11.2018 21:44:56
18,000
f20a897592d18d5f7372a281b58b34b7a25eb116
REF: renamings: remove trailing underscore from attributes
[ { "change_type": "MODIFY", "old_path": "statsmodels/gam/gam.py", "new_path": "statsmodels/gam/gam.py", "diff": "@@ -106,7 +106,7 @@ class GLMGAMResults(GLMResults):\nidx = start_idx + np.nonzero(mask)[0]\n# smoother has only smooth parts, not exog_linear\n- exog_part = smoother.basis_[:, mask]\n+ ex...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
REF: renamings: remove trailing underscore from attributes
641,971
24.11.2018 21:55:35
18,000
cd6f841841104123adf7a7e7fe654f597e303aef
REF: Multivariate -> AdditiveGamSmoother, some pep-8 indentation
[ { "change_type": "MODIFY", "old_path": "statsmodels/gam/smooth_basis.py", "new_path": "statsmodels/gam/smooth_basis.py", "diff": "@@ -614,7 +614,7 @@ class UnivariateCubicCyclicSplines(UnivariateGamSmoother):\nreturn exog\n-class MultivariateGamSmoother(with_metaclass(ABCMeta)):\n+class AdditiveGamS...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
REF: Multivariate -> AdditiveGamSmoother, some pep-8 indentation
641,971
24.11.2018 22:05:29
18,000
5b84ef3952817e5e3627a7d3acea2e64484e6259
REF: rename n_sample -> nobs
[ { "change_type": "MODIFY", "old_path": "statsmodels/gam/gam.py", "new_path": "statsmodels/gam/gam.py", "diff": "@@ -323,11 +323,11 @@ class GLMGam(PenalizedMixin, GLM):\nwlsexog = self.exog # smoother.basis\nspl_s = self.penal.penalty_matrix(alpha=alpha)\n- n_samples, n_columns = wlsexog.shape\n+ no...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
REF: rename n_sample -> nobs
641,971
25.11.2018 10:35:28
18,000
ae86167d82f197bc2ecd514e4c50d5fc4164927c
REF: use penalties `deriv` instead of deprecated `grad`
[ { "change_type": "MODIFY", "old_path": "statsmodels/base/_penalized.py", "new_path": "statsmodels/base/_penalized.py", "diff": "@@ -120,7 +120,7 @@ class PenalizedMixin(object):\nsc = super(PenalizedMixin, self).score(params, **kwds)\nif pen_weight != 0:\nscale = self._handle_scale(params, **kwds)\n...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
REF: use penalties `deriv` instead of deprecated `grad`
641,971
25.11.2018 14:00:42
18,000
a9ed465e0c8da095940816f369c26eb465b02b67
REF/DOC: argument cleanup and docstrings
[ { "change_type": "MODIFY", "old_path": "statsmodels/gam/gam.py", "new_path": "statsmodels/gam/gam.py", "diff": "@@ -30,6 +30,25 @@ class GLMGAMResults(GLMResults):\nWarning: not all inherited methods might take correctly account of the\npenalization\n+ GLMGAMResults inherits from GLMResults\n+\n+ Ex...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
REF/DOC: argument cleanup and docstrings
641,971
07.01.2019 10:43:37
18,000
5663348b50e2a650ade07738d1e8d0282ec1ca1e
TST: fix r script for tests, whitespace creation in R2nparray.R
[ { "change_type": "MODIFY", "old_path": "statsmodels/gam/tests/results/results_mpg_bs_poisson.r", "new_path": "statsmodels/gam/tests/results/results_mpg_bs_poisson.r", "diff": "@@ -15,7 +15,7 @@ sm_knots_hp = c(48.0, 48.0, 48.0, 48.0, 68.0, 73.0, 88.0, 101.0, 116.0, 152.2857\nknots_w <- data.frame(we...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
TST: fix r script for tests, whitespace creation in R2nparray.R
641,971
10.01.2019 12:38:51
18,000
bde7febee9600f26e9e946af4bca72e6709e78f4
CLN/TST: partial cleanup of comments, obsolete code, fix `test_plot_partial`
[ { "change_type": "MODIFY", "old_path": "statsmodels/base/_penalized.py", "new_path": "statsmodels/base/_penalized.py", "diff": "@@ -54,11 +54,7 @@ class PenalizedMixin(object):\nself._null_drop_keys = getattr(self, '_null_drop_keys', [])\nself._null_drop_keys.extend(['penal'])\n- def _handle_scale(s...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
CLN/TST: partial cleanup of comments, obsolete code, fix `test_plot_partial`
641,971
16.01.2019 10:48:44
18,000
f80370b08911165bacb37ff5dbce1c9e3cb17fc3
REF/CLN: rename GLMGamResults, cleanup to docstrings, comments
[ { "change_type": "MODIFY", "old_path": "statsmodels/base/_penalized.py", "new_path": "statsmodels/base/_penalized.py", "diff": "@@ -63,11 +63,9 @@ class PenalizedMixin(object):\nscale = self.estimate_scale(mu)\nelse:\nscale = 1\n- pass\nreturn scale\n-\ndef loglike(self, params, pen_weight=None, **k...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
REF/CLN: rename GLMGamResults, cleanup to docstrings, comments
641,971
17.01.2019 14:26:36
18,000
4d63326121772e28e2b24d892507e39e14ef3945
ENH: experimental handling of pandas and formul information for exog_names
[ { "change_type": "MODIFY", "old_path": "statsmodels/gam/gam.py", "new_path": "statsmodels/gam/gam.py", "diff": "@@ -404,6 +404,18 @@ class GLMGam(PenalizedMixin, GLM):\ndef __init__(self, endog, exog=None, smoother=None, alpha=0, family=None,\noffset=None, exposure=None, missing='none', **kwargs):\n...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
ENH: experimental handling of pandas and formul information for exog_names
641,971
18.01.2019 13:28:18
18,000
8040506ce58e8aac85bbe4f0cb569ae5ffdb6169
ENH: add predict transform for exog_linear, more pandas returns
[ { "change_type": "MODIFY", "old_path": "statsmodels/gam/gam.py", "new_path": "statsmodels/gam/gam.py", "diff": "@@ -10,20 +10,77 @@ created on 08/07/2015\nfrom __future__ import division\nimport collections\n+\nimport numpy as np\nfrom scipy import optimize\n+import pandas as pd\n+\nfrom statsmodels...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
ENH: add predict transform for exog_linear, more pandas returns
641,971
18.01.2019 14:12:38
18,000
8d4eff060dbea79ea225a9103be636c2e70d3fa1
ENH: use PandasData to get wrapper to work with pandas
[ { "change_type": "MODIFY", "old_path": "statsmodels/gam/gam.py", "new_path": "statsmodels/gam/gam.py", "diff": "@@ -497,6 +497,8 @@ class GLMGam(PenalizedMixin, GLM):\nself.design_info_linear = exog.design_info\nxnames_linear = self.design_info_linear.column_names\n+ is_pandas = _is_using_pandas(exo...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
ENH: use PandasData to get wrapper to work with pandas
641,971
18.01.2019 17:12:51
18,000
a12d97c371680af860c0a7b859e1e4949f146cb1
BUG: py 2.7 need specific wrapper class, see
[ { "change_type": "MODIFY", "old_path": "statsmodels/gam/gam.py", "new_path": "statsmodels/gam/gam.py", "diff": "@@ -442,7 +442,10 @@ class GLMGamResults(GLMResults):\nreturn cv_\n-wrap.populate_wrapper(GLMResultsWrapper, GLMGamResults)\n+class GLMGamResultsWrapper(GLMResultsWrapper):\n+ pass\n+\n+wr...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
BUG: py 2.7 need specific wrapper class, see #5472
641,971
21.01.2019 11:28:58
18,000
27efc9c4145c63f464ae553e93fb7f4c6963ae1b
REF/ENH: avoit fit_irls, fix results wrapper class
[ { "change_type": "MODIFY", "old_path": "statsmodels/gam/gam.py", "new_path": "statsmodels/gam/gam.py", "diff": "@@ -489,6 +489,7 @@ class GLMGam(PenalizedMixin, GLM):\n\"\"\"\n_results_class = GLMGamResults\n+ _results_class_wrapper = GLMGamResultsWrapper\ndef __init__(self, endog, exog=None, smooth...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
REF/ENH: avoit fit_irls, fix results wrapper class
641,971
23.01.2019 09:36:02
18,000
75cd2091088e5601c950d2b26f05746e9c07a38c
CLN: some pep-8 (line length) and comment cleanup, minor refactor
[ { "change_type": "MODIFY", "old_path": "statsmodels/gam/gam.py", "new_path": "statsmodels/gam/gam.py", "diff": "@@ -15,6 +15,8 @@ import numpy as np\nfrom scipy import optimize\nimport pandas as pd\n+import statsmodels.base.wrapper as wrap\n+\nfrom statsmodels.discrete.discrete_model import Logit\nf...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
CLN: some pep-8 (line length) and comment cleanup, minor refactor
641,971
23.01.2019 11:55:30
18,000
75c363259a55f02ffcecdeef72c0614b5397d764
REF/ENH: add select_penweight_kfold, refactor names in cross validation
[ { "change_type": "MODIFY", "old_path": "statsmodels/gam/gam.py", "new_path": "statsmodels/gam/gam.py", "diff": "@@ -832,6 +832,62 @@ class GLMGam(PenalizedMixin, GLM):\nalpha = np.exp(opt)\nreturn alpha, fit_res, history\n+ def select_penweight_kfold(self, alphas=None, cv_iterator=None, cost=None,\n...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
REF/ENH: add select_penweight_kfold, refactor names in cross validation
641,971
25.01.2019 16:19:15
18,000
4eebd9a3d1f29c708a27727fa232940f31a848e6
ENH/REF: add exog_linear support to k-fold cross validation
[ { "change_type": "MODIFY", "old_path": "statsmodels/api.py", "new_path": "statsmodels/api.py", "diff": "@@ -30,6 +30,8 @@ from .nonparametric import api as nonparametric\nfrom . import distributions\nfrom .__init__ import test\n+from .gam.gam import GLMGam\n+from .gam import api as gam\nfrom .graphi...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
ENH/REF: add exog_linear support to k-fold cross validation
641,971
28.01.2019 15:13:10
18,000
4569df93002701d29e62da45261edfd546e62de8
REF/TST: fix model attribute changes in select_penweight
[ { "change_type": "MODIFY", "old_path": "statsmodels/gam/gam.py", "new_path": "statsmodels/gam/gam.py", "diff": "@@ -10,6 +10,7 @@ created on 08/07/2015\nfrom __future__ import division\nimport collections\n+import copy # check if needed when dropping python 2.7\nimport numpy as np\nfrom scipy import...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
REF/TST: fix model attribute changes in select_penweight
641,971
28.01.2019 23:16:03
18,000
133d40e52eb53f09100faa2bcac379dc29406e14
ENH/DOC add to formula api, docs
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/source/gam.rst", "diff": "+.. currentmodule:: statsmodels.gam.api\n+\n+.. _gam:\n+\n+Generalized Additive Models (GAM)\n+=================================\n+\n+Generalized Additive Models allow for penalized estimation of smooth terms\n+in ...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
ENH/DOC add to formula api, docs
641,971
29.01.2019 11:49:52
18,000
5071fa2dd2ceade6ad3bd2ddb15000705d28175c
REF: rename gam.py to generalized_additive_model
[ { "change_type": "MODIFY", "old_path": "statsmodels/api.py", "new_path": "statsmodels/api.py", "diff": "@@ -30,7 +30,7 @@ from .nonparametric import api as nonparametric\nfrom . import distributions\nfrom .__init__ import test\n-from .gam.gam import GLMGam\n+from .gam.generalized_additive_model impo...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
REF: rename gam.py to generalized_additive_model
641,971
29.01.2019 13:45:41
18,000
0ab356a57b4c1f3c750c4f93b7e2f3eab7a8ef05
MAINT/REF: fix numpy and pandas compatibility (deprecations), avoid zerodivision
[ { "change_type": "MODIFY", "old_path": "statsmodels/gam/smooth_basis.py", "new_path": "statsmodels/gam/smooth_basis.py", "diff": "@@ -381,7 +381,10 @@ class UnivariatePolynomialSmoother(UnivariateGamSmoother):\ndg = i + 1\nbasis[:, i] = self.x ** dg\nder_basis[:, i] = dg * self.x ** (dg - 1)\n+ if d...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
MAINT/REF: fix numpy and pandas compatibility (deprecations), avoid zerodivision
642,065
29.01.2019 21:10:52
21,600
30c9ddbff8a072cbc1bebc7550b667e760cb386a
MAINT: A few pandas changes are needed to deal with frequencies now being offsets
[ { "change_type": "MODIFY", "old_path": "statsmodels/compat/pandas.py", "new_path": "statsmodels/compat/pandas.py", "diff": "@@ -14,7 +14,10 @@ except ImportError:\nfrom pandas.core.common import is_numeric_dtype # noqa:F401\nif version >= '0.20':\n+ try:\nfrom pandas.tseries import frequencies\n+ ex...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
MAINT: A few pandas changes are needed to deal with frequencies now being offsets
642,065
29.01.2019 21:30:03
21,600
6bfd7c0057f31a85cb8486e18d01910da6f2f16a
Try offsets first
[ { "change_type": "MODIFY", "old_path": "statsmodels/compat/pandas.py", "new_path": "statsmodels/compat/pandas.py", "diff": "@@ -15,9 +15,9 @@ except ImportError:\nif version >= '0.20':\ntry:\n- from pandas.tseries import frequencies\n- except ImportError:\nfrom pandas.tseries import offsets as frequ...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Try offsets first
641,971
30.01.2019 16:31:54
18,000
06a47e7cb2c4871a19bdacd0d8ef102ca2a5c52c
DOC: fix gam.rst
[ { "change_type": "MODIFY", "old_path": "docs/source/gam.rst", "new_path": "docs/source/gam.rst", "diff": "@@ -14,11 +14,11 @@ Examples\n--------\nThe following illustrates a Gaussian and a Poisson regression where\n-categorical variables are treated as a linear term and the effect of\n+categorical v...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
DOC: fix gam.rst
642,065
30.01.2019 19:15:18
21,600
b023048ce77c94151300480ca24a6582dbd20b3a
Use fixture to regenerate data
[ { "change_type": "MODIFY", "old_path": "lint.sh", "new_path": "lint.sh", "diff": "@@ -21,9 +21,11 @@ if [ \"$LINT\" == true ]; then\nstatsmodels/interface/ \\\nstatsmodels/duration/__init__.py \\\nstatsmodels/gam/gam_penalties.py \\\n- statsmodels/gam/generalized_additive_model.py \\\nstatsmodels/ga...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Use fixture to regenerate data
641,971
30.01.2019 21:30:20
18,000
91ee4f9203210f011863ce4583dfe704aceb1cc7
DOC: fix sphinx warnings tsa.rst. glm.rst, docstrings in anova_lm, glm varfunc, ga
[ { "change_type": "MODIFY", "old_path": "docs/source/tsa.rst", "new_path": "docs/source/tsa.rst", "diff": "@@ -131,10 +131,10 @@ these are rarely needed by end-users):\n:toctree: generated/\nkalmanf.kalmanfilter.KalmanFilter\n- innovations.arma_loglike\n- innovations.arma_loglikeobs\n- innovations.ar...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
DOC: fix sphinx warnings tsa.rst. glm.rst, docstrings in anova_lm, glm varfunc, ga
642,065
30.01.2019 21:09:11
21,600
2cd2c9542223f459352a22935fe942b20e057ad7
lint only works on a per-line basis
[ { "change_type": "MODIFY", "old_path": "lint.sh", "new_path": "lint.sh", "diff": "@@ -20,12 +20,7 @@ if [ \"$LINT\" == true ]; then\nstatsmodels/resampling/ \\\nstatsmodels/interface/ \\\nstatsmodels/duration/__init__.py \\\n- statsmodels/gam/gam_penalties.py \\\n- statsmodels/gam/gam_cross/validati...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
lint only works on a per-line basis
642,048
01.02.2019 23:44:26
18,000
49ee9cd99295d890f73995a8b425ca4b78b9fec4
Get mediation to work with mixedlm
[ { "change_type": "MODIFY", "old_path": "statsmodels/regression/mixed_linear_model.py", "new_path": "statsmodels/regression/mixed_linear_model.py", "diff": "@@ -957,9 +957,12 @@ class MixedLM(base.LikelihoodModel):\nelse:\nexog_vc = None\n+ kwargs[\"subset\"] = None\n+ kwargs[\"exog_re\"] = exog_re\n...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Get mediation to work with mixedlm
642,048
06.10.2018 00:17:05
14,400
fc71c081bf0162280448bef88e7cc7a116672b56
initial commit of clogit
[ { "change_type": "ADD", "old_path": null, "new_path": "statsmodels/regression/conditional_glm.py", "diff": "+\"\"\"\n+Conditional logistic regression\n+\"\"\"\n+\n+import numpy as np\n+import statsmodels.base.model as base\n+import statsmodels.regression.linear_model as lm\n+import statsmodels.base....
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
initial commit of clogit
642,048
06.10.2018 23:19:44
14,400
e563f66d30360e89768bcfdf79f8ca209ce99c10
add warnings, improve information in summary
[ { "change_type": "MODIFY", "old_path": "statsmodels/regression/conditional_glm.py", "new_path": "statsmodels/regression/conditional_glm.py", "diff": "@@ -7,6 +7,7 @@ import statsmodels.base.model as base\nimport statsmodels.regression.linear_model as lm\nimport statsmodels.base.wrapper as wrap\nimpo...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
add warnings, improve information in summary
642,048
07.10.2018 10:20:09
14,400
88e31c44c1ca58094eee98d89439ace1c1317095
move files to genmod
[ { "change_type": "RENAME", "old_path": "statsmodels/regression/conditional_glm.py", "new_path": "statsmodels/genmod/conditional_glm.py", "diff": "" }, { "change_type": "RENAME", "old_path": "statsmodels/regression/tests/test_conditional_glm.py", "new_path": "statsmodels/genmod/tests/...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
move files to genmod
642,048
08.10.2018 21:59:03
14,400
0960f617aef5f5b8d683dc44ea646eaf3a79c4b8
move to discrete
[ { "change_type": "RENAME", "old_path": "statsmodels/genmod/conditional_glm.py", "new_path": "statsmodels/discrete/conditional_models.py", "diff": "" }, { "change_type": "RENAME", "old_path": "statsmodels/genmod/tests/test_conditional_glm.py", "new_path": "statsmodels/discrete/tests/t...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
move to discrete
642,048
08.10.2018 22:04:04
14,400
4bfda857e54ff0000336f4536be4d144fa51a50a
create references to avoid repeated array lookups
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/conditional_models.py", "new_path": "statsmodels/discrete/conditional_models.py", "diff": "@@ -106,7 +106,8 @@ class ConditionalLogit(base.LikelihoodModel):\ndef _denom_grad(self, grp, params):\n- exb = np.exp(np.dot(self._exog_grp[grp], p...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
create references to avoid repeated array lookups
642,048
10.10.2018 21:24:48
14,400
d658f4843af1c7f2fc1a48d8e5f2aa42363bcf25
add conditional Poisson
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/conditional_models.py", "new_path": "statsmodels/discrete/conditional_models.py", "diff": "\"\"\"\n-Conditional logistic regression\n+Conditional logistic and Poisson regression\n\"\"\"\nimport numpy as np\n@@ -9,19 +9,12 @@ import statsmo...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
add conditional Poisson
642,048
03.11.2018 21:39:28
14,400
73a0dc56510209db13fd6a3bc9f6b968bfdb8b5c
add offset, support for penalized fitting
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/conditional_models.py", "new_path": "statsmodels/discrete/conditional_models.py", "diff": "@@ -11,11 +11,17 @@ import warnings\nclass conditionalModel(base.LikelihoodModel):\n- def __init__(self, endog, exog, groups, missing='none', **kwar...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
add offset, support for penalized fitting
642,048
04.11.2018 10:30:27
18,000
0ba3ff1e4a6e65f0ebf30e68488b75f45d7273c2
Add regularized fitting for conditional poisson
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/conditional_models.py", "new_path": "statsmodels/discrete/conditional_models.py", "diff": "@@ -123,6 +123,29 @@ class conditionalModel(base.LikelihoodModel):\nstart_params=None,\nrefit=False,\n**kwargs):\n+ \"\"\"\n+ Return a regularized f...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Add regularized fitting for conditional poisson
642,048
01.01.2019 18:36:22
18,000
ce25b06f04ffc3a1ccb3bc10b762641fa96c0d16
Use GLM to get starting values
[ { "change_type": "MODIFY", "old_path": "statsmodels/genmod/generalized_estimating_equations.py", "new_path": "statsmodels/genmod/generalized_estimating_equations.py", "diff": "@@ -38,6 +38,7 @@ import statsmodels.regression.linear_model as lm\nimport statsmodels.base.wrapper as wrap\nfrom statsmodel...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Use GLM to get starting values
642,048
23.12.2018 10:30:03
18,000
4ec9ab7ab7f405158359ef2d67ffdeb8ebeb69c5
Initial commit of score test enhancements for GEE
[ { "change_type": "MODIFY", "old_path": "statsmodels/genmod/generalized_estimating_equations.py", "new_path": "statsmodels/genmod/generalized_estimating_equations.py", "diff": "@@ -478,6 +478,11 @@ class GEE(base.Model):\nself.constraint = constraint\nself.update_dep = update_dep\n+ self._fit_history...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Initial commit of score test enhancements for GEE
642,048
23.12.2018 10:37:48
18,000
4138c9fb2eb20498914e1c1124d31c1ec90e7306
add reference to docstring
[ { "change_type": "MODIFY", "old_path": "statsmodels/genmod/generalized_estimating_equations.py", "new_path": "statsmodels/genmod/generalized_estimating_equations.py", "diff": "@@ -1682,6 +1682,12 @@ class GEEResults(base.LikelihoodModelResults):\nSee also GEE.score_test for an alternative way to per...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
add reference to docstring
642,048
24.12.2018 15:30:35
18,000
6073ecee7b01159f4c3af78ab07663ada8e0654f
fix issue caught by lint
[ { "change_type": "MODIFY", "old_path": "statsmodels/genmod/generalized_estimating_equations.py", "new_path": "statsmodels/genmod/generalized_estimating_equations.py", "diff": "@@ -782,10 +782,10 @@ class GEE(base.Model):\nif self.exog.shape[0] != submod.exog.shape[0]:\nmsg = \"Model and submodel hav...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
fix issue caught by lint
642,048
24.12.2018 16:04:44
18,000
7253d2d830f82663ef7ab26bb6d1fa7ac59766af
Fix issues caught by coday
[ { "change_type": "MODIFY", "old_path": "statsmodels/genmod/tests/test_gee.py", "new_path": "statsmodels/genmod/tests/test_gee.py", "diff": "@@ -597,10 +597,8 @@ class TestGEE(object):\nL = np.asarray([[0, 1, 0, 0], [0, 0, 1, 0]])\nR = np.zeros(2)\nmod_lr = GEE(endog, exog, group, constraint=(L, R), ...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Fix issues caught by coday
642,048
24.12.2018 22:14:16
18,000
3cf201e891771b0320c6fd696f3762e24ac71f90
rename score_test to compare_score_test
[ { "change_type": "MODIFY", "old_path": "statsmodels/genmod/generalized_estimating_equations.py", "new_path": "statsmodels/genmod/generalized_estimating_equations.py", "diff": "@@ -734,7 +734,7 @@ class GEE(base.Model):\nreturn [np.array(array[self.group_indices[k], :])\nfor k in self.group_labels]\n...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
rename score_test to compare_score_test
642,048
25.12.2018 08:29:33
18,000
9923984ceb5d81cdf2564260017e7edec1fe6aea
handle warning/exceptions
[ { "change_type": "MODIFY", "old_path": "statsmodels/genmod/generalized_estimating_equations.py", "new_path": "statsmodels/genmod/generalized_estimating_equations.py", "diff": "@@ -29,6 +29,7 @@ import numpy as np\nfrom scipy import stats\nimport pandas as pd\nimport patsy\n+from numpy.testing import...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
handle warning/exceptions
642,048
01.01.2019 00:16:21
18,000
44d35e2bf03d0424a24e77b784acef63e0564b77
Allow for general submodels (not just submatrices)
[ { "change_type": "MODIFY", "old_path": "statsmodels/genmod/generalized_estimating_equations.py", "new_path": "statsmodels/genmod/generalized_estimating_equations.py", "diff": "@@ -734,7 +734,7 @@ class GEE(base.Model):\nreturn [np.array(array[self.group_indices[k], :])\nfor k in self.group_labels]\n...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Allow for general submodels (not just submatrices)
642,048
21.02.2019 23:54:03
18,000
d424dfa5db9eba858735a3eac29fb9c42ae5101a
Fix issues identified by codacy
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/conditional_models.py", "new_path": "statsmodels/discrete/conditional_models.py", "diff": "@@ -119,7 +119,8 @@ class conditionalModel(base.LikelihoodModel):\n\"%d\" % max(self._groupsize),\n\"%.1f\" % np.mean(self._groupsize)\n]\n- return ...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Fix issues identified by codacy
642,048
22.02.2019 06:58:01
18,000
5f534cd16a306046a6b467fadcda9e44681ea457
remove code from test with no effect
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/tests/test_conditional.py", "new_path": "statsmodels/discrete/tests/test_conditional.py", "diff": "@@ -301,10 +301,6 @@ def test_conditional_mlogit2():\ntime=\"time\", groups=\"g\", data=df)\nresult1 = model1.fit()\n- import statsmodels.ap...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
remove code from test with no effect
642,048
03.01.2019 23:15:27
18,000
36e268c2a3e0ca5197da4286f72ab33674150770
Regularized GEE
[ { "change_type": "MODIFY", "old_path": "statsmodels/genmod/generalized_estimating_equations.py", "new_path": "statsmodels/genmod/generalized_estimating_equations.py", "diff": "@@ -1378,7 +1378,8 @@ class GEE(base.Model):\nhm0 = rslt[1]\nhm += np.dot(ex.T, hm0)\n- sn /= self.num_group\n+ # Wang et al...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Regularized GEE
642,048
03.01.2019 23:46:49
18,000
b59ee4023d63fd57464ab0206236aabed91f1d38
incorporate scale
[ { "change_type": "MODIFY", "old_path": "statsmodels/genmod/generalized_estimating_equations.py", "new_path": "statsmodels/genmod/generalized_estimating_equations.py", "diff": "@@ -1358,12 +1358,9 @@ class GEE(base.Model):\nfit.__doc__ = _gee_fit_doc\n- def _update_regularized(self, params, pen_wt, s...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
incorporate scale
642,048
03.02.2019 17:30:00
18,000
383a0584eb75a4b1aa3f70b306d92e8f2e33f5b0
more post-rebase cleanup
[ { "change_type": "MODIFY", "old_path": "statsmodels/genmod/generalized_estimating_equations.py", "new_path": "statsmodels/genmod/generalized_estimating_equations.py", "diff": "@@ -1358,9 +1358,7 @@ class GEE(base.Model):\nfit.__doc__ = _gee_fit_doc\n- def _update_regularized(self, params, pen_wt, sc...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
more post-rebase cleanup
642,048
04.02.2019 09:00:22
18,000
eadc0dce90530df5e56fad04d55f72028a4bec9f
use underscore for unused return value
[ { "change_type": "MODIFY", "old_path": "statsmodels/genmod/generalized_estimating_equations.py", "new_path": "statsmodels/genmod/generalized_estimating_equations.py", "diff": "@@ -1399,7 +1399,7 @@ class GEE(base.Model):\nfor i in range(self.num_group):\n- expval, lpr = self.cached_means[i]\n+ expva...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
use underscore for unused return value
642,048
04.02.2019 09:46:34
18,000
42f7ec3d47929e1b15201b16e53ad95f29807df3
underscore for unused return value
[ { "change_type": "MODIFY", "old_path": "statsmodels/genmod/generalized_estimating_equations.py", "new_path": "statsmodels/genmod/generalized_estimating_equations.py", "diff": "@@ -1364,7 +1364,7 @@ class GEE(base.Model):\nfor i in range(self.num_group):\n- expval, lpr = self.cached_means[i]\n+ expva...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
underscore for unused return value
642,048
03.03.2019 00:02:01
18,000
e28097cdc1107d4f64baecf10e4aa77b361880f5
dimension reduction regression
[ { "change_type": "ADD", "old_path": null, "new_path": "statsmodels/regression/dimred.py", "diff": "+import numpy as np\n+from statsmodels.base import model\n+import statsmodels.base.wrapper as wrap\n+import pandas as pd\n+\n+class DimReductionRegression(model.Model):\n+\n+ def __init__(self, endog, ...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
dimension reduction regression
642,048
03.03.2019 00:09:37
18,000
26f9375c45e29dfdfd5b3611cdf86e87ea7f9801
Add reference, fix docstring
[ { "change_type": "MODIFY", "old_path": "statsmodels/regression/dimred.py", "new_path": "statsmodels/regression/dimred.py", "diff": "@@ -92,6 +92,9 @@ class PHD(DimReductionRegression):\nReferences\n----------\n+ KC Li (1992). On Principal Hessian Directions for Data\n+ Visualization and Dimension Re...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Add reference, fix docstring
642,048
12.03.2019 20:58:49
14,400
7ddc002c8a25dd11564d6470e54f103cdd70c61e
docstring updates foc clogit
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/conditional_models.py", "new_path": "statsmodels/discrete/conditional_models.py", "diff": "@@ -19,9 +19,15 @@ class conditionalModel(base.LikelihoodModel):\ndef __init__(self, endog, exog, missing='none', **kwargs):\nif \"groups\" not in k...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
docstring updates foc clogit
642,048
13.03.2019 08:39:42
14,400
fc92cb79905f356223839b5b62d34b7afeecd8cb
check for intercept
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/conditional_models.py", "new_path": "statsmodels/discrete/conditional_models.py", "diff": "@@ -13,7 +13,6 @@ import warnings\nimport itertools\n-\nclass conditionalModel(base.LikelihoodModel):\ndef __init__(self, endog, exog, missing='none...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
check for intercept
642,048
13.03.2019 08:58:45
14,400
650c94f6f2d5907f8daa88d9ea7011de2dbc9cb9
verify codiing for conditional logit
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/conditional_models.py", "new_path": "statsmodels/discrete/conditional_models.py", "diff": "@@ -236,6 +236,10 @@ class ConditionalLogit(conditionalModel):\nsuper(ConditionalLogit, self).__init__(\nendog, exog, missing=missing, **kwargs)\n+ ...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
verify codiing for conditional logit
642,048
17.03.2019 15:19:19
14,400
b6fd7752c6d571c6bae7143fc9c4d47927f3aaef
formatting/naming fixed after code review
[ { "change_type": "MODIFY", "old_path": "statsmodels/discrete/conditional_models.py", "new_path": "statsmodels/discrete/conditional_models.py", "diff": "@@ -13,7 +13,7 @@ import warnings\nimport itertools\n-class conditionalModel(base.LikelihoodModel):\n+class _ConditionalModel(base.LikelihoodModel):...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
formatting/naming fixed after code review
642,048
04.03.2019 17:26:12
18,000
d1ab3f38188b8f23c879560d4e1a71bf75dfcdd4
Add quasi-likelihood for Tweedie, use gradients for all GLM ridge fits
[ { "change_type": "MODIFY", "old_path": "statsmodels/genmod/families/family.py", "new_path": "statsmodels/genmod/families/family.py", "diff": "@@ -1329,6 +1329,9 @@ class Tweedie(Family):\nSee statsmodels.genmod.families.links for more information.\nvar_power : float, optional\nThe variance power. Th...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Add quasi-likelihood for Tweedie, use gradients for all GLM ridge fits
642,048
04.03.2019 17:51:07
18,000
82ccdeafd7244dd842ff071abd9050fe2273561c
add warning for non-convergence
[ { "change_type": "MODIFY", "old_path": "statsmodels/genmod/generalized_linear_model.py", "new_path": "statsmodels/genmod/generalized_linear_model.py", "diff": "@@ -1316,7 +1316,7 @@ class GLM(base.LikelihoodModel):\nreturn result\n- def _fit_ridge(self, alpha, start_params):\n+ def _fit_ridge(self, ...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
add warning for non-convergence
642,048
04.03.2019 20:08:30
18,000
61ee639b4f5361e93d68bfeaf7d6a3eb8765f35b
Fix error in formula
[ { "change_type": "MODIFY", "old_path": "statsmodels/genmod/families/family.py", "new_path": "statsmodels/genmod/families/family.py", "diff": "@@ -1472,7 +1472,7 @@ class Tweedie(Family):\nllf *= -1 / 2\nu = endog ** (2 - p) - (2 - p) * endog * mu ** (1 - p) + (1 - p) * mu ** (2 - p)\n- u *= var_weig...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Fix error in formula
642,048
04.03.2019 20:12:08
18,000
c5aee2fc30178825bfa3ac124cd8072aab511593
ignore ridge convergence warnings
[ { "change_type": "MODIFY", "old_path": "statsmodels/genmod/tests/test_glm.py", "new_path": "statsmodels/genmod/tests/test_glm.py", "diff": "@@ -1904,8 +1904,10 @@ class TestTweedieSpecialLog3(CheckTweedieSpecial):\nexog=cls.data.exog[['INCOME', 'SOUTH']],\nfamily=family2).fit()\n+@pytest.mark.filter...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
ignore ridge convergence warnings
642,048
05.03.2019 09:08:06
18,000
b60c41c0228ba54ba78dbb0042f42675df83da8e
Docstring, reformatting
[ { "change_type": "MODIFY", "old_path": "statsmodels/genmod/families/family.py", "new_path": "statsmodels/genmod/families/family.py", "diff": "@@ -1332,6 +1332,7 @@ class Tweedie(Family):\neql : bool\nIf True, the Extended Quasi-Likelihood is used, else the\nlikelihood is used (however the latter is ...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Docstring, reformatting
642,048
01.03.2019 10:31:30
18,000
9f52da57d91c2803d4d226864db82e66902fe49c
square root lasso
[ { "change_type": "MODIFY", "old_path": "statsmodels/regression/linear_model.py", "new_path": "statsmodels/regression/linear_model.py", "diff": "@@ -66,7 +66,7 @@ _fit_regularized_doc =\\\nParameters\n----------\nmethod : string\n- Only the 'elastic_net' approach is currently implemented.\n+ 'elastic...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
square root lasso
642,048
01.03.2019 13:13:42
18,000
9c19f70da8cb4c32642ac8ea2858e9258cfc2d5e
handle missingh cvxopt in testing
[ { "change_type": "MODIFY", "old_path": "statsmodels/regression/tests/test_regression.py", "new_path": "statsmodels/regression/tests/test_regression.py", "diff": "@@ -23,6 +23,11 @@ DECIMAL_1 = 1\nDECIMAL_7 = 7\nDECIMAL_0 = 0\n+try:\n+ import cvxopt\n+ has_cvxopt = True\n+except:\n+ has_cvxopt = Fals...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
handle missingh cvxopt in testing
641,983
23.03.2019 12:20:03
21,600
e2c5cda5a94ee0f9f069fdabb1898948b3e76683
DOC: Describe binomial endog formats Closes
[ { "change_type": "MODIFY", "old_path": "statsmodels/genmod/families/family.py", "new_path": "statsmodels/genmod/families/family.py", "diff": "@@ -796,7 +796,15 @@ class Binomial(Family):\nNotes\n-----\n- endog for Binomial can be specified in one of three ways.\n+ endog for Binomial can be specified...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
DOC: Describe binomial endog formats Closes #5519.
642,048
23.03.2019 21:39:12
14,400
d549e6b3e7f752e2788ca5c283713df68ada7ed4
py27 needs slacker tolerances
[ { "change_type": "MODIFY", "old_path": "statsmodels/genmod/tests/test_glm.py", "new_path": "statsmodels/genmod/tests/test_glm.py", "diff": "@@ -1936,9 +1936,15 @@ def test_tweedie_EQL():\n# Lasso fit using coordinatewise descent\nmodel2 = sm.GLM(y, x, family=fam)\nresult2 = model2.fit_regularized(L1...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
py27 needs slacker tolerances
642,048
23.03.2019 23:03:02
14,400
ca92ccb1e6724a0e4420c919a152a7e97e84cdab
Modify tolerances
[ { "change_type": "MODIFY", "old_path": "statsmodels/genmod/tests/test_glm.py", "new_path": "statsmodels/genmod/tests/test_glm.py", "diff": "@@ -1953,7 +1953,7 @@ def test_tweedie_EQL():\nfor j, alpha in enumerate([0.05, 0.5, 0.7]):\nmodel3 = sm.GLM(y, x, family=fam)\nresult3 = model3.fit_regularized...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Modify tolerances
642,048
24.03.2019 09:54:18
14,400
d248d0e1bb617eef77e565b9471da2ceee12f32d
fix error in tweedie quasi-likelihood
[ { "change_type": "MODIFY", "old_path": "statsmodels/genmod/families/family.py", "new_path": "statsmodels/genmod/families/family.py", "diff": "@@ -1465,19 +1465,21 @@ class Tweedie(Family):\nReferences\n----------\n- http://support.sas.com/documentation/cdl/en/stathpug/67524/HTML/default/viewer.htm#s...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
fix error in tweedie quasi-likelihood
642,048
24.03.2019 10:56:30
14,400
bb12b94a92f6967d3c0c697fa31defe157585656
handle Tweedie EQL boundary cases
[ { "change_type": "MODIFY", "old_path": "statsmodels/genmod/families/family.py", "new_path": "statsmodels/genmod/families/family.py", "diff": "@@ -1477,6 +1477,14 @@ class Tweedie(Family):\nllf = np.log(2 * np.pi * scale) + p * np.log(mu) - np.log(var_weights)\nllf /= -2\n+ if p == 1:\n+ u = endog * ...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
handle Tweedie EQL boundary cases
642,068
26.03.2019 23:16:20
14,400
a16b49cd997791878b2834bd73c8a38baa1f20ad
keep index of series when recoding a series
[ { "change_type": "MODIFY", "old_path": "statsmodels/graphics/factorplots.py", "new_path": "statsmodels/graphics/factorplots.py", "diff": "@@ -172,9 +172,11 @@ def _recode(x, levels):\n\"\"\"\nfrom pandas import Series\nname = None\n+ index = None\nif isinstance(x, Series):\nname = x.name\n+ index = ...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
keep index of series when recoding a series
641,992
16.04.2019 15:51:30
-28,800
9ea3c83411bda80f1979f4d29fd4ee3e219dbb09
Correct a spell mistake construct and fir the model->construct and fit the model
[ { "change_type": "MODIFY", "old_path": "examples/notebooks/recursive_ls.ipynb", "new_path": "examples/notebooks/recursive_ls.ipynb", "diff": "\"cell_type\": \"markdown\",\n\"metadata\": {},\n\"source\": [\n- \"First, construct and fir the model, and print a summary. Although the `RLS` model computes...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Correct a spell mistake construct and fir the model->construct and fit the model
641,895
16.04.2019 21:53:58
18,000
c96f46a355e3805514d7c9a35bf0ec15e5029f3b
Fixed bug where AR coefficients were coming out to NaN
[ { "change_type": "MODIFY", "old_path": "statsmodels/tsa/tests/test_tsa_tools.py", "new_path": "statsmodels/tsa/tests/test_tsa_tools.py", "diff": "@@ -104,6 +104,11 @@ def test_vech():\nassert (np.array_equal(vech(arr), [1, 4, 7, 5, 8, 9]))\n+def test_ar_transparams():\n+ arr = np.array([-1000.0, -10...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Fixed bug where AR coefficients were coming out to NaN
641,895
19.04.2019 02:14:11
18,000
48174837329361f770092d8a82c6b2e730c6b07d
prevented mutation of param input and replaced formula for arctanh equivalent
[ { "change_type": "MODIFY", "old_path": "statsmodels/tsa/tsatools.py", "new_path": "statsmodels/tsa/tsatools.py", "diff": "@@ -632,10 +632,10 @@ def _ar_invtransparams(params):\nParameters\n----------\n- params : array\n+ params : array_like\nThe transformed AR coefficients\n\"\"\"\n- # AR coeffs\n+ ...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
prevented mutation of param input and replaced formula for arctanh equivalent
642,065
03.01.2019 00:07:52
21,600
43eaacf425d9327bfec2f17cb60102bf27604779
Simplify package installation
[ { "change_type": "MODIFY", "old_path": "tools/ci/docbuild_install.sh", "new_path": "tools/ci/docbuild_install.sh", "diff": "# Install system dependencies\necho sudo apt-get install graphviz -qq\nsudo apt-get install graphviz -qq\n-# Install required packages\n-echo conda install sphinx ipython jupyt...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Simplify package installation
642,065
03.01.2019 00:17:18
21,600
24910206f71b9d915db12b44c786c2d328cf1473
sphinx docfix: need ipython: python Add readline dev
[ { "change_type": "MODIFY", "old_path": "docs/source/contrasts.rst", "new_path": "docs/source/contrasts.rst", "diff": "@@ -48,7 +48,7 @@ Example Data\nIt will be instructive to look at the mean of the dependent variable, write, for each level of race ((1 = Hispanic, 2 = Asian, 3 = African American an...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
sphinx docfix: need ipython: python Add readline dev
642,065
08.04.2019 21:33:48
18,000
11aa87e08bf87f7653fbdbca5b8416a75a17fccc
ipython does not do a good job of inserting line breaks nbconvert is broken Use tornado<6 Its label, not tools Re-add simplegeneric
[ { "change_type": "MODIFY", "old_path": "docs/source/contrasts.rst", "new_path": "docs/source/contrasts.rst", "diff": "@@ -11,31 +11,33 @@ In fact, the dummy coding is not technically a contrast coding. This is because\nTo have a look at the contrast matrices in Patsy, we will use data from UCLA ATS....
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
ipython does not do a good job of inserting line breaks nbconvert is broken Use tornado<6 Its label, not tools Re-add simplegeneric
642,065
13.04.2019 14:12:54
18,000
4a43e094e1d8b8c294ecf3fefd34767097338d92
Move extras install to before_script Install libgfortran3 Apt-get update maybe?
[ { "change_type": "MODIFY", "old_path": ".travis.yml", "new_path": ".travis.yml", "diff": "@@ -155,7 +155,6 @@ before_install:\nelse\nexport COVERAGE_OPTS=\"\"\nfi\n- - if [ ${DOCBUILD} = true ]; then source tools/ci/docbuild_install.sh; fi;\n- pip install flake8\n- export SRCDIR=$PWD\n@@ -163,6 +162...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Move extras install to before_script Install libgfortran3 Apt-get update maybe?
642,065
14.04.2019 14:51:01
18,000
3c6acf7cb55305b10a5ccbfe1762d85331a68e91
github extension needs to use the new logger Missing a space
[ { "change_type": "MODIFY", "old_path": "docs/sphinxext/github.py", "new_path": "docs/sphinxext/github.py", "diff": "@@ -20,6 +20,7 @@ Authors\nfrom docutils import nodes, utils\nfrom docutils.parsers.rst.roles import set_classes\n+\ndef make_link_node(rawtext, app, type, slug, options):\n\"\"\"Creat...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
github extension needs to use the new logger Missing a space
642,065
14.04.2019 17:52:31
18,000
8151a3075500bdca02e56978415ada8f32bf8fb1
Small flake8 fixes
[ { "change_type": "MODIFY", "old_path": "statsmodels/regression/mixed_linear_model.py", "new_path": "statsmodels/regression/mixed_linear_model.py", "diff": "@@ -2174,8 +2174,8 @@ class _mixedlm_distribution(object):\nself.model = model\nself.exog = exog if exog is not None else model.exog\n- po = Mix...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
Small flake8 fixes
642,065
24.04.2019 23:26:26
18,000
70c67fcf20af1ecfbac23c43befd4d70434e4dc3
TST: Apply constant random seed
[ { "change_type": "MODIFY", "old_path": "statsmodels/tsa/innovations/tests/test_arma_innovations.py", "new_path": "statsmodels/tsa/innovations/tests/test_arma_innovations.py", "diff": "@@ -22,6 +22,7 @@ from statsmodels.tsa.statespace.sarimax import SARIMAX\ndef test_innovations_algo_filter_kalman_fi...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
TST: Apply constant random seed
641,904
01.11.2018 20:33:28
25,200
28456fceb64eb2463e41325b3a003109e85823c9
CLN: invalid escapes in duration
[ { "change_type": "MODIFY", "old_path": "statsmodels/duration/hazard_regression.py", "new_path": "statsmodels/duration/hazard_regression.py", "diff": "@@ -403,7 +403,7 @@ class PHReg(model.LikelihoodModel):\noffset = data[offset]\nimport re\n- terms = re.split(\"[+\\-~]\", formula)\n+ terms = re.spli...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
CLN: invalid escapes in duration
641,904
01.11.2018 20:36:26
25,200
00c279f2626654e8dbd7f8bbc608ea88733b3f87
CLN: invalid escapes in imputation
[ { "change_type": "MODIFY", "old_path": "statsmodels/imputation/tests/test_ros.py", "new_path": "statsmodels/imputation/tests/test_ros.py", "diff": "@@ -518,7 +518,7 @@ class Test_ROS_RNADAdata(CheckROSMixin):\n))\nrescol = 'res'\ncencol = 'cen'\n- df = pandas.read_csv(datastring, sep='\\s+')\n+ df =...
Python
BSD 3-Clause New or Revised License
statsmodels/statsmodels
CLN: invalid escapes in imputation