Skip to content

Commit

Permalink
Merge pull request #681 from bashtage/rls-6.2
Browse files Browse the repository at this point in the history
RLS: Final changes for release 6.2
  • Loading branch information
bashtage authored Sep 26, 2023
2 parents 26f90af + cb335b2 commit 95d1d65
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 28 deletions.
6 changes: 3 additions & 3 deletions arch/univariate/mean.py
Original file line number Diff line number Diff line change
Expand Up @@ -1859,15 +1859,15 @@ def arch_model(
Parameters
----------
y : {ndarray, Series, None}
y : ndarray, Series, None
The dependent variable
x : {np.array, DataFrame}, optional
x : ndarray, DataFrame, optional
Exogenous regressors. Ignored if model does not permit exogenous
regressors.
mean : str, optional
Name of the mean model. Currently supported options are: 'Constant',
'Zero', 'LS', 'AR', 'ARX', 'HAR' and 'HARX'
lags : int or list (int), optional
lags : int or list[int], optional
Either a scalar integer value indicating lag length or a list of
integers specifying lag locations.
vol : str, optional
Expand Down
9 changes: 7 additions & 2 deletions doc/source/changes/6.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
Version 6
=========

Release 6.2 (Not Released)
==========================
Release 6.2
===========
- Fixed a bug that affected forecasting from :class:`~arch.univariate.volatility.FIGARCH` models (:issue:`606`).
- Added a performance warning when testing for unit roots in large series using a lag-length
search with no-max-lag specified.
- Fixed a bug that affected forecasting from :class:`arch.univariate.volatility.FIGARCH'
models (:issue:`606`).
- Changed the default value of ``reindex`` to ``False`` so that forecasts
will not match the input by default. Set ``reindex`` to ``True`` if this is
required.
Expand Down
69 changes: 46 additions & 23 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
project = "arch"
copyright = "2021, Kevin Sheppard"
author = "Kevin Sheppard"

# More warnings
nitpicky = True

# The short X.Y version
Expand All @@ -51,6 +53,7 @@
# extensions coming with Sphinx (named "sphinx.ext.*") or your custom
# ones.
extensions = [
"sphinx.ext.napoleon",
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"sphinx.ext.extlinks",
Expand All @@ -61,9 +64,7 @@
"sphinx.ext.viewcode",
"sphinx.ext.coverage",
"sphinx.ext.ifconfig",
# "numpydoc",
"sphinx.ext.napoleon",
"sphinx_autodoc_typehints",
"sphinx.ext.githubpages",
"IPython.sphinxext.ipython_console_highlighting",
"IPython.sphinxext.ipython_directive",
"nbsphinx",
Expand Down Expand Up @@ -107,9 +108,12 @@
exclude_patterns: list[str] = []

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = "colorful" # "sphinx"
pygments_style = "colorful"

# -- Options for HTML output -------------------------------------------------
# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = True

# -- Options for HTML output ----------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
Expand Down Expand Up @@ -161,8 +165,6 @@
"link": "https://doi.org/10.5281/zenodo.593254",
},
],
# "globaltoc_depth": 2,
# "globaltoc_includehidden": True,
}

html_favicon = "images/favicon.ico"
Expand Down Expand Up @@ -201,21 +203,20 @@
htmlhelp_basename = "arch"

# -- Options for LaTeX output ------------------------------------------------

latex_elements: dict[str, str] = {
# The paper size ("letterpaper" or "a4paper").
#
# "papersize": "letterpaper",
# The font size ("10pt", "11pt" or "12pt").
#
# "pointsize": "10pt",
# Additional stuff for the LaTeX preamble.
#
# "preamble": '',
# Latex figure (float) alignment
#
# "figure_align": "htbp",
}
# latex_elements: dict[str, str] = {
# The paper size ("letterpaper" or "a4paper").
#
# "papersize": "letterpaper",
# The font size ("10pt", "11pt" or "12pt").
#
# "pointsize": "10pt",
# Additional stuff for the LaTeX preamble.
#
# "preamble": '',
# Latex figure (float) alignment
#
# "figure_align": "htbp",
# }

# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
Expand Down Expand Up @@ -286,10 +287,29 @@
napoleon_use_admonition_for_notes = False
napoleon_use_admonition_for_references = False

napoleon_preprocess_types = True
napoleon_use_param = True
napoleon_type_aliases = {
"array-like": ":term:`array-like <array_like>`",
"array_like": ":term:`array_like`",
"Figure": "matplotlib.figure.Figure",
"Axes": "matplotlib.axes.Axes",
"AxesSubplot": "matplotlib.axes.Axes",
"DataFrame": "pandas.DataFrame",
"Series": "pandas.Series",
"csc_matrix": "scipy.sparse.csc_matrix",
"DataArray": "xarray.DataArray",
"ndarray": "numpy.ndarray",
"np.ndarray": "numpy.array",
"pd.Series": "pandas.Series",
"RandomState": "numpy.random.RandomState",
"Generator": "numpy.random.Generator",
"VarianceForecast": "arch.univariate.volatility.VarianceForecast",
}

numpydoc_use_autodoc_signature = True
numpydoc_xref_param_type = True
numpydoc_class_members_toctree = False

numpydoc_xref_aliases = {
"Figure": "matplotlib.figure.Figure",
"Axes": "matplotlib.axes.Axes",
Expand All @@ -299,6 +319,9 @@
"ndarray": "numpy.ndarray",
"RandomState": "numpy.random.RandomState",
"VarianceForecast": "arch.univariate.volatility.VarianceForecast",
"Generator": "numpy.random.Generator",
"np.ndarray": "numpy.array",
"pd.Series": "pandas.Series",
}

autosummary_generate = True
Expand Down

0 comments on commit 95d1d65

Please sign in to comment.