File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 9
9
10
10
class ModelBuilder (pm .Model ):
11
11
"""
12
- This is a wrapper around pm.Model to give scikit-learn like API
12
+ This is a wrapper around pm.Model to give scikit-learn like API.
13
13
"""
14
14
15
15
def __init__ (self , sample_kwargs : Optional [Dict [str , Any ]] = None ):
16
+ """
17
+ :param sample_kwargs: A dictionary of kwargs that get unpacked and passed to the
18
+ :func:`pymc.sample` function. Defaults to an empty dictionary.
19
+ """
16
20
super ().__init__ ()
17
21
self .idata = None
18
22
self .sample_kwargs = sample_kwargs if sample_kwargs is not None else {}
Original file line number Diff line number Diff line change 46
46
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
47
47
48
48
extensions = [
49
- "sphinx.ext.mathjax" ,
49
+ "myst_parser" ,
50
+ "nbsphinx" ,
50
51
"sphinx.ext.autodoc" ,
52
+ "sphinx.ext.intersphinx" ,
53
+ "sphinx.ext.mathjax" ,
51
54
"sphinx_autodoc_typehints" ,
52
- "nbsphinx" ,
53
- "myst_parser" ,
54
55
]
55
56
56
57
source_suffix = [".rst" , ".md" ]
57
58
templates_path = ["_templates" ]
58
59
exclude_patterns = ["_build" , "Thumbs.db" , ".DS_Store" ]
59
60
master_doc = "index"
60
61
62
+ # -- intersphinx config -------------------------------------------------------
63
+ intersphinx_mapping = {
64
+ "python" : ("https://docs.python.org/3" , None ),
65
+ "pymc" : ("https://www.pymc.io/projects/docs/en/stable/" , None ),
66
+ }
67
+
61
68
# -- nbsphinx config ----------------------------------------------------------
62
69
# Opt out of executing the notebooks remotely. This will save time in the remote build
63
70
# process on readthedocs. The notebooks in /docs/notebooks will be parsed/converted,
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ docs = ["ipykernel",
61
61
" pathlib" ,
62
62
" sphinx" ,
63
63
" sphinx-autodoc-typehints" ,
64
+ " sphinx_autodoc_defaultargs" ,
64
65
" sphinx-design" ,
65
66
" sphinx-rtd-theme" ,
66
67
" statsmodels" ,
You can’t perform that action at this time.
0 commit comments