Skip to content

Commit 1f11e1a

Browse files
committed
BLD/DOC: Add doc string check to doc build
Add check for doc string validity to doc build Begin correcting some of the errors
1 parent b3c5e27 commit 1f11e1a

19 files changed

+1485
-273
lines changed

.pep8speaks.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
pycodestyle:
1+
scanner:
2+
diff_only: True
3+
linter: flake8
4+
5+
flake8:
6+
max-line-length: 79
27
ignore: # Errors and warnings to ignore
3-
- W504 # line break after binary operator
8+
- W503
9+
- W504

docs/source/discretemod.rst

+2
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ The specific model classes are:
8282
NegativeBinomialP
8383
GeneralizedPoisson
8484

85+
.. currentmodule:: statsmodels.discrete.count_model
8586
.. module:: statsmodels.discrete.count_model
8687

8788
.. autosummary::
@@ -91,6 +92,7 @@ The specific model classes are:
9192
ZeroInflatedNegativeBinomialP
9293
ZeroInflatedGeneralizedPoisson
9394

95+
.. currentmodule:: statsmodels.discrete.conditional_models
9496
.. module:: statsmodels.discrete.conditional_models
9597

9698
.. autosummary::

docs/source/gam.rst

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ Module Reference
7272

7373
.. module:: statsmodels.gam.generalized_additive_model
7474
:synopsis: Generalized Additive Models
75+
.. currentmodule:: statsmodels.gam.generalized_additive_model
7576

7677
Model Class
7778
^^^^^^^^^^^

docs/source/graphics.rst

+61-31
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. currentmodule:: statsmodels.graphics
1+
.. currentmodule:: statsmodels.graphics.gofplots
22

33
.. _graphics:
44

@@ -13,75 +13,105 @@ Goodness of Fit Plots
1313
.. autosummary::
1414
:toctree: generated/
1515

16-
gofplots.qqplot
17-
gofplots.qqline
18-
gofplots.qqplot_2samples
19-
gofplots.ProbPlot
16+
qqplot
17+
qqline
18+
qqplot_2samples
19+
ProbPlot
2020

2121
Boxplots
2222
--------
2323

24+
.. currentmodule:: statsmodels.graphics.boxplots
25+
2426
.. autosummary::
2527
:toctree: generated/
2628

27-
boxplots.violinplot
28-
boxplots.beanplot
29+
violinplot
30+
beanplot
2931

3032
Correlation Plots
3133
------------------
3234

35+
.. currentmodule:: statsmodels.graphics.correlation
36+
3337
.. autosummary::
3438
:toctree: generated/
3539

36-
correlation.plot_corr
37-
correlation.plot_corr_grid
38-
plot_grids.scatter_ellipse
40+
plot_corr
41+
plot_corr_grid
42+
43+
.. currentmodule:: statsmodels.graphics.plot_grids
44+
45+
.. autosummary::
46+
:toctree: generated/
47+
48+
scatter_ellipse
3949

4050
Functional Plots
4151
----------------
4252

53+
.. currentmodule:: statsmodels.graphics.functional
54+
4355
.. autosummary::
4456
:toctree: generated/
4557

46-
functional.hdrboxplot
47-
functional.fboxplot
48-
functional.rainbowplot
49-
functional.banddepth
58+
hdrboxplot
59+
fboxplot
60+
rainbowplot
61+
banddepth
5062

5163
Regression Plots
5264
----------------
5365

66+
.. currentmodule:: statsmodels.graphics.regressionplots
67+
5468
.. autosummary::
5569
:toctree: generated/
5670

57-
regressionplots.plot_fit
58-
regressionplots.plot_regress_exog
59-
regressionplots.plot_partregress
60-
regressionplots.plot_partregress_grid
61-
regressionplots.plot_ccpr
62-
regressionplots.plot_ccpr_grid
63-
regressionplots.plot_ceres_residuals
64-
regressionplots.abline_plot
65-
regressionplots.influence_plot
66-
regressionplots.plot_leverage_resid2
71+
plot_fit
72+
plot_regress_exog
73+
plot_partregress
74+
plot_partregress_grid
75+
plot_ccpr
76+
plot_ccpr_grid
77+
plot_ceres_residuals
78+
abline_plot
79+
influence_plot
80+
plot_leverage_resid2
6781

6882
Time Series Plots
6983
-----------------
7084

85+
.. currentmodule:: statsmodels.graphics.tsaplots
86+
7187
.. autosummary::
7288
:toctree: generated/
7389

74-
tsaplots.plot_acf
75-
tsaplots.plot_pacf
76-
tsaplots.month_plot
77-
tsaplots.quarter_plot
90+
plot_acf
91+
plot_pacf
92+
month_plot
93+
quarter_plot
7894

7995
Other Plots
8096
-----------
8197

98+
.. currentmodule:: statsmodels.graphics.factorplots
99+
100+
.. autosummary::
101+
:toctree: generated/
102+
103+
interaction_plot
104+
105+
.. currentmodule:: statsmodels.graphics.mosaicplot
106+
107+
.. autosummary::
108+
:toctree: generated/
109+
110+
mosaic
111+
112+
.. currentmodule:: statsmodels.graphics.agreement
113+
82114
.. autosummary::
83115
:toctree: generated/
84116

85-
factorplots.interaction_plot
86-
mosaicplot.mosaic
87-
agreement.mean_diff_plot
117+
mean_diff_plot

docs/source/nonparametric.rst

+27-10
Original file line numberDiff line numberDiff line change
@@ -89,25 +89,42 @@ Module Reference
8989

9090
The public functions and classes are
9191

92+
.. currentmodule:: statsmodels.nonparametric.smoothers_lowess
9293
.. autosummary::
9394
:toctree: generated/
9495

95-
smoothers_lowess.lowess
96-
kde.KDEUnivariate
97-
kernel_density.KDEMultivariate
98-
kernel_density.KDEMultivariateConditional
99-
kernel_density.EstimatorSettings
100-
kernel_regression.KernelReg
101-
kernel_regression.KernelCensoredReg
96+
lowess
97+
98+
.. currentmodule:: statsmodels.nonparametric.kde
99+
.. autosummary::
100+
:toctree: generated/
101+
102+
KDEUnivariate
103+
104+
.. currentmodule:: statsmodels.nonparametric.kernel_density
105+
.. autosummary::
106+
:toctree: generated/
107+
108+
KDEMultivariate
109+
KDEMultivariateConditional
110+
EstimatorSettings
111+
112+
.. currentmodule:: statsmodels.nonparametric.kernel_regression
113+
.. autosummary::
114+
:toctree: generated/
115+
116+
KernelReg
117+
KernelCensoredReg
102118

103119
helper functions for kernel bandwidths
104120

121+
.. currentmodule:: statsmodels.nonparametric.bandwidths
105122
.. autosummary::
106123
:toctree: generated/
107124

108-
bandwidths.bw_scott
109-
bandwidths.bw_silverman
110-
bandwidths.select_bandwidth
125+
bw_scott
126+
bw_silverman
127+
select_bandwidth
111128

112129
There are some examples for nonlinear functions in
113130
:mod:`statsmodels.nonparametric.dgp_examples`

docs/source/tsa.rst

+52-22
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,12 @@ process for given lag-polynomials.
183183
arima_process.lpol_fima
184184
arima_process.lpol_sdiff
185185

186-
.. currentmodule:: statsmodels
186+
.. currentmodule:: statsmodels.sandbox.tsa.fftarma
187187

188188
.. autosummary::
189189
:toctree: generated/
190190

191-
sandbox.tsa.fftarma.ArmaFft
191+
ArmaFft
192192

193193
.. currentmodule:: statsmodels.tsa
194194

@@ -204,56 +204,86 @@ See the :ref:`vector_ar documentation. <var>`.
204204
Regime switching models
205205
"""""""""""""""""""""""
206206

207+
.. currentmodule:: statsmodels.tsa.regime_switching.markov_regression
207208
.. autosummary::
208209
:toctree: generated/
209210

210-
regime_switching.markov_regression.MarkovRegression
211-
regime_switching.markov_autoregression.MarkovAutoregression
211+
MarkovRegression
212+
213+
.. currentmodule:: statsmodels.tsa.regime_switching.markov_autoregression
214+
.. autosummary::
215+
:toctree: generated/
216+
217+
MarkovAutoregression
212218

213219

214220
Time Series Filters
215221
"""""""""""""""""""
216222

223+
.. currentmodule:: statsmodels.tsa.filters.bk_filter
224+
.. autosummary::
225+
:toctree: generated/
226+
227+
bkfilter
228+
229+
.. currentmodule:: statsmodels.tsa.filters.hp_filter
230+
.. autosummary::
231+
:toctree: generated/
232+
233+
hpfilter
234+
235+
.. currentmodule:: statsmodels.tsa.filters.cf_filter
236+
.. autosummary::
237+
:toctree: generated/
238+
239+
cffilter
240+
241+
.. currentmodule:: statsmodels.tsa.filters.filtertools
217242
.. autosummary::
218243
:toctree: generated/
219244

220-
filters.bk_filter.bkfilter
221-
filters.hp_filter.hpfilter
222-
filters.cf_filter.cffilter
223-
filters.filtertools.convolution_filter
224-
filters.filtertools.recursive_filter
225-
filters.filtertools.miso_lfilter
226-
filters.filtertools.fftconvolve3
227-
filters.filtertools.fftconvolveinv
228-
seasonal.seasonal_decompose
229-
seasonal.STL
230-
seasonal.DecomposeResult
245+
convolution_filter
246+
recursive_filter
247+
miso_lfilter
248+
fftconvolve3
249+
fftconvolveinv
250+
251+
252+
.. currentmodule:: statsmodels.tsa.seasonal
253+
.. autosummary::
254+
:toctree: generated/
255+
256+
seasonal_decompose
257+
STL
258+
DecomposeResult
231259

232260
TSA Tools
233261
"""""""""
234262

235-
.. currentmodule:: statsmodels.tsa
263+
.. currentmodule:: statsmodels.tsa.tsatools
236264

237265
.. autosummary::
238266
:toctree: generated/
239267

240-
tsatools.add_trend
241-
tsatools.detrend
242-
tsatools.lagmat
243-
tsatools.lagmat2ds
268+
add_trend
269+
detrend
270+
lagmat
271+
lagmat2ds
244272

245273
VARMA Process
246274
"""""""""""""
247275

276+
.. currentmodule:: statsmodels.tsa.varma_process
248277
.. autosummary::
249278
:toctree: generated/
250279

251-
varma_process.VarmaPoly
280+
VarmaPoly
252281

253282
Interpolation
254283
"""""""""""""
255284

285+
.. currentmodule:: statsmodels.tsa.interp.denton
256286
.. autosummary::
257287
:toctree: generated/
258288

259-
interp.denton.dentonm
289+
dentonm

0 commit comments

Comments
 (0)