scikit-base 0.4.6__py3-none-any.whl → 0.5.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. docs/source/conf.py +299 -299
  2. {scikit_base-0.4.6.dist-info → scikit_base-0.5.1.dist-info}/LICENSE +29 -29
  3. {scikit_base-0.4.6.dist-info → scikit_base-0.5.1.dist-info}/METADATA +160 -159
  4. scikit_base-0.5.1.dist-info/RECORD +58 -0
  5. {scikit_base-0.4.6.dist-info → scikit_base-0.5.1.dist-info}/WHEEL +1 -1
  6. scikit_base-0.5.1.dist-info/top_level.txt +5 -0
  7. {scikit_base-0.4.6.dist-info → scikit_base-0.5.1.dist-info}/zip-safe +1 -1
  8. skbase/__init__.py +14 -14
  9. skbase/_exceptions.py +31 -31
  10. skbase/_nopytest_tests.py +35 -35
  11. skbase/base/__init__.py +20 -20
  12. skbase/base/_base.py +1249 -1249
  13. skbase/base/_meta.py +883 -871
  14. skbase/base/_pretty_printing/__init__.py +11 -11
  15. skbase/base/_pretty_printing/_object_html_repr.py +392 -392
  16. skbase/base/_pretty_printing/_pprint.py +412 -412
  17. skbase/base/_tagmanager.py +217 -217
  18. skbase/lookup/__init__.py +31 -31
  19. skbase/lookup/_lookup.py +1009 -1009
  20. skbase/lookup/tests/__init__.py +2 -2
  21. skbase/lookup/tests/test_lookup.py +991 -991
  22. skbase/testing/__init__.py +12 -12
  23. skbase/testing/test_all_objects.py +852 -856
  24. skbase/testing/utils/__init__.py +5 -5
  25. skbase/testing/utils/_conditional_fixtures.py +209 -209
  26. skbase/testing/utils/_dependencies.py +15 -15
  27. skbase/testing/utils/deep_equals.py +15 -15
  28. skbase/testing/utils/inspect.py +30 -30
  29. skbase/testing/utils/tests/__init__.py +2 -2
  30. skbase/testing/utils/tests/test_check_dependencies.py +49 -49
  31. skbase/testing/utils/tests/test_deep_equals.py +66 -66
  32. skbase/tests/__init__.py +2 -2
  33. skbase/tests/conftest.py +273 -273
  34. skbase/tests/mock_package/__init__.py +5 -5
  35. skbase/tests/mock_package/test_mock_package.py +74 -74
  36. skbase/tests/test_base.py +1202 -1202
  37. skbase/tests/test_baseestimator.py +130 -130
  38. skbase/tests/test_exceptions.py +23 -23
  39. skbase/tests/test_meta.py +170 -131
  40. skbase/utils/__init__.py +21 -21
  41. skbase/utils/_check.py +53 -53
  42. skbase/utils/_iter.py +238 -238
  43. skbase/utils/_nested_iter.py +180 -180
  44. skbase/utils/_utils.py +91 -91
  45. skbase/utils/deep_equals.py +358 -358
  46. skbase/utils/dependencies/__init__.py +11 -11
  47. skbase/utils/dependencies/_dependencies.py +253 -253
  48. skbase/utils/tests/__init__.py +4 -4
  49. skbase/utils/tests/test_check.py +24 -24
  50. skbase/utils/tests/test_iter.py +127 -127
  51. skbase/utils/tests/test_nested_iter.py +84 -84
  52. skbase/utils/tests/test_utils.py +37 -37
  53. skbase/validate/__init__.py +22 -22
  54. skbase/validate/_named_objects.py +403 -403
  55. skbase/validate/_types.py +345 -345
  56. skbase/validate/tests/__init__.py +2 -2
  57. skbase/validate/tests/test_iterable_named_objects.py +200 -200
  58. skbase/validate/tests/test_type_validations.py +370 -370
  59. scikit_base-0.4.6.dist-info/RECORD +0 -58
  60. scikit_base-0.4.6.dist-info/top_level.txt +0 -2
docs/source/conf.py CHANGED
@@ -1,299 +1,299 @@
1
- #!/usr/bin/env python3
2
- # -*- coding: utf-8 -*-
3
- # copyright: skbase developers, BSD-3-Clause License (see LICENSE file)
4
- """Configure skbase Sphinx documentation."""
5
-
6
- # -- Path setup --------------------------------------------------------------
7
-
8
- # If extensions (or modules to document with autodoc) are in another directory,
9
- # add these directories to sys.path here. If the directory is relative to the
10
- # documentation root, use os.path.abspath to make it absolute, like shown here.
11
-
12
- import datetime
13
- import inspect
14
- import os
15
- import sys
16
-
17
- import skbase
18
-
19
- # -- Path setup --------------------------------------------------------------
20
-
21
- # When we build the docs on readthedocs, we build the package and want to
22
- # use the built files in order for sphinx to be able to properly read the
23
- # Cython files. Hence, we do not add the source code path to the system path.
24
- env_rtd = os.environ.get("READTHEDOCS")
25
- # Check if on Read the docs
26
- if not env_rtd == "True":
27
- print("Not on ReadTheDocs")
28
- sys.path.insert(0, os.path.abspath("../.."))
29
-
30
- # -- Project information -----------------------------------------------------
31
-
32
- current_year = datetime.datetime.now().year
33
- project = "skbase"
34
- copyright = f"{current_year} (BSD-3-Clause License)"
35
- author = "skbase Developers"
36
-
37
-
38
- # The full version, including alpha/beta/rc tags
39
- release = skbase.__version__
40
-
41
- # -- General configuration ---------------------------------------------------
42
-
43
- # Add any Sphinx extension module names here, as strings. They can be
44
- # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
45
- # ones.
46
- extensions = [
47
- "sphinx.ext.autodoc",
48
- "sphinx.ext.autosummary",
49
- "numpydoc",
50
- "sphinx.ext.intersphinx",
51
- "sphinx.ext.linkcode", # link to GitHub source code via linkcode_resolve()
52
- "nbsphinx", # integrates example notebooks
53
- "sphinx_gallery.load_style",
54
- "myst_parser",
55
- "sphinx_panels",
56
- "sphinx_issues",
57
- "sphinx_design",
58
- ]
59
-
60
- myst_enable_extensions = ["colon_fence"]
61
-
62
- # -- Internationalization ------------------------------------------------
63
- # specifying the natural language populates some key tags
64
- language = "en"
65
-
66
- # Use bootstrap CSS from theme.
67
- panels_add_bootstrap_css = False
68
-
69
- # Add any paths that contain templates here, relative to this directory.
70
- templates_path = ["_templates"]
71
-
72
- # The suffix(es) of source filenames.
73
- # You can specify multiple suffix as a list of string:
74
- source_suffix = {
75
- ".rst": "restructuredtext",
76
- ".md": "markdown",
77
- }
78
-
79
- # The main toctree document.
80
- master_doc = "index"
81
-
82
- # List of patterns, relative to source directory, that match files and
83
- # directories to ignore when looking for source files.
84
- # This pattern also affects html_static_path and html_extra_path.
85
- exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "**.ipynb_checkpoints"]
86
-
87
- # add_module_names = False
88
-
89
- # The name of the Pygments (syntax highlighting) style to use.
90
- pygments_style = "sphinx"
91
-
92
- # Members and inherited-members default to showing methods and attributes from
93
- # a class or those inherited.
94
- # Member-order orders the documentation in the order of how the members are
95
- # defined in the source code.
96
- autodoc_default_options = {
97
- "members": True,
98
- "inherited-members": True,
99
- "member-order": "bysource",
100
- }
101
-
102
- # If true, '()' will be appended to :func: etc. cross-reference text.
103
- add_function_parentheses = False
104
-
105
- # Link to GitHub repo for github_issues extension
106
- issues_github_path = "sktime/skbase"
107
-
108
-
109
- def linkcode_resolve(domain, info):
110
- """Return URL to source code corresponding.
111
-
112
- Parameters
113
- ----------
114
- domain : str
115
- info : dict
116
-
117
- Returns
118
- -------
119
- url : str
120
- """
121
-
122
- def find_source():
123
- # try to find the file and line number, based on code from numpy:
124
- # https://github.com/numpy/numpy/blob/main/doc/source/conf.py#L286
125
- obj = sys.modules[info["module"]]
126
- for part in info["fullname"].split("."):
127
- obj = getattr(obj, part)
128
-
129
- fn = inspect.getsourcefile(obj)
130
- fn = os.path.relpath(fn, start=os.path.dirname(skbase.__file__))
131
- source, lineno = inspect.getsourcelines(obj)
132
- return fn, lineno, lineno + len(source) - 1
133
-
134
- if domain != "py" or not info["module"]:
135
- return None
136
- try:
137
- filename = "skbase/%s#L%d-L%d" % find_source()
138
- except Exception:
139
- filename = info["module"].replace(".", "/") + ".py"
140
- return f"https://github.com/sktime/skbase/blob/{version_match}/{filename}"
141
-
142
-
143
- # -- Options for HTML output -------------------------------------------------
144
-
145
- # The theme to use for HTML and HTML Help pages. See the documentation for
146
- # a list of builtin themes.
147
-
148
- html_theme = "pydata_sphinx_theme"
149
-
150
- # Define the json_url for our version switcher.
151
- json_url = "https://skbase.readthedocs.io/en/latest/_static/switcher.json"
152
-
153
- # This uses code from the py-data-sphinx theme's own conf.py
154
- # Define the version we use for matching in the version switcher.
155
- version_match = os.environ.get("READTHEDOCS_VERSION")
156
-
157
- # If READTHEDOCS_VERSION doesn't exist, we're not on RTD
158
- # If it is an integer, we're in a PR build and the version isn't correct.
159
- if not version_match or version_match.isdigit():
160
- # For local development, infer the version to match from the package.
161
- if "dev" in release or "rc" in release:
162
- version_match = "latest"
163
- # We want to keep the relative reference if we are in dev mode
164
- # but we want the whole url if we are effectively in a released version
165
- json_url = "_static/switcher.json"
166
- else:
167
- version_match = "v" + release
168
-
169
- html_theme_options = {
170
- "logo": {
171
- "text": "skbase",
172
- "alt_text": "skbase",
173
- },
174
- "icon_links": [
175
- {
176
- "name": "GitHub",
177
- "url": "https://github.com/sktime/skbase",
178
- "icon": "fab fa-github",
179
- },
180
- {
181
- "name": "Slack",
182
- "url": "https://join.slack.com/t/skbase/shared_invite/zt-1qke3vzl2-fADjZBZadBlXsLUym5NlhA", # noqa: E501
183
- "icon": "fab fa-slack",
184
- },
185
- {
186
- "name": "PyPI",
187
- "url": "https://pypi.org/project/skbase",
188
- "icon": "fa-solid fa-box",
189
- },
190
- ],
191
- "icon_links_label": "Quick Links",
192
- "show_nav_level": 1,
193
- "show_prev_next": False,
194
- "use_edit_page_button": False,
195
- "navbar_start": ["navbar-logo", "version-switcher"],
196
- "navbar_center": ["navbar-nav"],
197
- "switcher": {
198
- "json_url": json_url,
199
- "version_match": version_match,
200
- },
201
- "header_links_before_dropdown": 6,
202
- }
203
-
204
- html_context = {
205
- "github_user": "sktime",
206
- "github_repo": "skbase",
207
- "github_version": "main",
208
- "doc_path": "docs/source/",
209
- "default_mode": "light",
210
- }
211
- html_sidebars = {"**": ["sidebar-nav-bs.html", "sidebar-ethical-ads.html"]}
212
-
213
- # Add any paths that contain custom static files (such as style sheets) here,
214
- # relative to this directory. They are copied after the builtin static files,
215
- # so a file named "default.css" will overwrite the builtin "default.css".
216
- html_static_path = ["_static"]
217
-
218
- # -- Options for HTMLHelp output ---------------------------------------------
219
- # Output file base name for HTML help builder.
220
- htmlhelp_basename = "skbasedoc"
221
-
222
-
223
- # -- Options for LaTeX output ------------------------------------------------
224
- # latex_elements = {
225
- # The paper size ('letterpaper' or 'a4paper').
226
- # 'papersize': 'letterpaper',
227
- # The font size ('10pt', '11pt' or '12pt').
228
- # 'pointsize': '10pt',
229
- # Additional stuff for the LaTeX preamble.
230
- # 'preamble': '',
231
- # Latex figure (float) alignment
232
- # 'figure_align': 'htbp',
233
- # }
234
-
235
- # Grouping the document tree into LaTeX files. List of tuples
236
- # (source start file, target name, title,
237
- # author, documentclass [howto, manual, or own class]).
238
- latex_documents = [
239
- (
240
- master_doc,
241
- "skbase.tex",
242
- "skbase Documentation",
243
- "skbase developers",
244
- "manual",
245
- ),
246
- ]
247
-
248
- # -- Extension configuration -------------------------------------------------
249
-
250
- # -- Options for numpydoc extension ------------------------------------------
251
- # see http://stackoverflow.com/q/12206334/562769
252
- numpydoc_show_class_members = True
253
- # this is needed for some reason...
254
- # see https://github.com/numpy/numpydoc/issues/69
255
- numpydoc_class_members_toctree = False
256
-
257
- numpydoc_validation_checks = {"all", "GL01", "SA01", "EX01"}
258
-
259
- # -- Options for sphinx-copybutton extension----------------------------------
260
- copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: "
261
- copybutton_prompt_is_regexp = True
262
-
263
- # -- Options for nbsphinx extension ------------------------------------------
264
- nbsphinx_execute = "never" # always # whether to run notebooks
265
- nbsphinx_allow_errors = False # False
266
- nbsphinx_timeout = 600 # seconds, set to -1 to disable timeout
267
-
268
- # add Binder launch buttom at the top
269
- current_file = "{{ env.doc2path( env.docname, base=None) }}"
270
-
271
- # make sure Binder points to latest stable release, not main
272
- binder_base = "https://mybinder.org/v2/gh//skbase/"
273
- binder_url = binder_base + f"{version_match}?filepath={current_file}"
274
- nbsphinx_prolog = f"""
275
- .. |binder| image:: https://mybinder.org/badge_logo.svg
276
- .. _Binder: {binder_url}
277
-
278
- |Binder|_
279
- """
280
-
281
- # add link to original notebook at the bottom
282
- notebook_url = f"https://github.com/sktime/skbase/tree/{version_match}/{current_file}"
283
- nbsphinx_epilog = f"""
284
- ----
285
-
286
- Generated using nbsphinx_. The Jupyter notebook can be found here_.
287
-
288
- .. _here: {notebook_url}
289
- .. _nbsphinx: https://nbsphinx.readthedocs.io/
290
- """
291
-
292
- # -- Options for intersphinx extension ---------------------------------------
293
-
294
- # Example configuration for intersphinx: refer to the Python standard library.
295
- intersphinx_mapping = {
296
- "python": ("https://docs.python.org/{.major}".format(sys.version_info), None),
297
- "scikit-learn": ("https://scikit-learn.org/stable/", None),
298
- "sktime": ("https://www.sktime.org/en/stable/", None),
299
- }
1
+ #!/usr/bin/env python3
2
+ # -*- coding: utf-8 -*-
3
+ # copyright: skbase developers, BSD-3-Clause License (see LICENSE file)
4
+ """Configure skbase Sphinx documentation."""
5
+
6
+ # -- Path setup --------------------------------------------------------------
7
+
8
+ # If extensions (or modules to document with autodoc) are in another directory,
9
+ # add these directories to sys.path here. If the directory is relative to the
10
+ # documentation root, use os.path.abspath to make it absolute, like shown here.
11
+
12
+ import datetime
13
+ import inspect
14
+ import os
15
+ import sys
16
+
17
+ import skbase
18
+
19
+ # -- Path setup --------------------------------------------------------------
20
+
21
+ # When we build the docs on readthedocs, we build the package and want to
22
+ # use the built files in order for sphinx to be able to properly read the
23
+ # Cython files. Hence, we do not add the source code path to the system path.
24
+ env_rtd = os.environ.get("READTHEDOCS")
25
+ # Check if on Read the docs
26
+ if not env_rtd == "True":
27
+ print("Not on ReadTheDocs")
28
+ sys.path.insert(0, os.path.abspath("../.."))
29
+
30
+ # -- Project information -----------------------------------------------------
31
+
32
+ current_year = datetime.datetime.now().year
33
+ project = "skbase"
34
+ copyright = f"{current_year} (BSD-3-Clause License)"
35
+ author = "skbase Developers"
36
+
37
+
38
+ # The full version, including alpha/beta/rc tags
39
+ release = skbase.__version__
40
+
41
+ # -- General configuration ---------------------------------------------------
42
+
43
+ # Add any Sphinx extension module names here, as strings. They can be
44
+ # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
45
+ # ones.
46
+ extensions = [
47
+ "sphinx.ext.autodoc",
48
+ "sphinx.ext.autosummary",
49
+ "numpydoc",
50
+ "sphinx.ext.intersphinx",
51
+ "sphinx.ext.linkcode", # link to GitHub source code via linkcode_resolve()
52
+ "nbsphinx", # integrates example notebooks
53
+ "sphinx_gallery.load_style",
54
+ "myst_parser",
55
+ "sphinx_panels",
56
+ "sphinx_issues",
57
+ "sphinx_design",
58
+ ]
59
+
60
+ myst_enable_extensions = ["colon_fence"]
61
+
62
+ # -- Internationalization ------------------------------------------------
63
+ # specifying the natural language populates some key tags
64
+ language = "en"
65
+
66
+ # Use bootstrap CSS from theme.
67
+ panels_add_bootstrap_css = False
68
+
69
+ # Add any paths that contain templates here, relative to this directory.
70
+ templates_path = ["_templates"]
71
+
72
+ # The suffix(es) of source filenames.
73
+ # You can specify multiple suffix as a list of string:
74
+ source_suffix = {
75
+ ".rst": "restructuredtext",
76
+ ".md": "markdown",
77
+ }
78
+
79
+ # The main toctree document.
80
+ master_doc = "index"
81
+
82
+ # List of patterns, relative to source directory, that match files and
83
+ # directories to ignore when looking for source files.
84
+ # This pattern also affects html_static_path and html_extra_path.
85
+ exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "**.ipynb_checkpoints"]
86
+
87
+ # add_module_names = False
88
+
89
+ # The name of the Pygments (syntax highlighting) style to use.
90
+ pygments_style = "sphinx"
91
+
92
+ # Members and inherited-members default to showing methods and attributes from
93
+ # a class or those inherited.
94
+ # Member-order orders the documentation in the order of how the members are
95
+ # defined in the source code.
96
+ autodoc_default_options = {
97
+ "members": True,
98
+ "inherited-members": True,
99
+ "member-order": "bysource",
100
+ }
101
+
102
+ # If true, '()' will be appended to :func: etc. cross-reference text.
103
+ add_function_parentheses = False
104
+
105
+ # Link to GitHub repo for github_issues extension
106
+ issues_github_path = "sktime/skbase"
107
+
108
+
109
+ def linkcode_resolve(domain, info):
110
+ """Return URL to source code corresponding.
111
+
112
+ Parameters
113
+ ----------
114
+ domain : str
115
+ info : dict
116
+
117
+ Returns
118
+ -------
119
+ url : str
120
+ """
121
+
122
+ def find_source():
123
+ # try to find the file and line number, based on code from numpy:
124
+ # https://github.com/numpy/numpy/blob/main/doc/source/conf.py#L286
125
+ obj = sys.modules[info["module"]]
126
+ for part in info["fullname"].split("."):
127
+ obj = getattr(obj, part)
128
+
129
+ fn = inspect.getsourcefile(obj)
130
+ fn = os.path.relpath(fn, start=os.path.dirname(skbase.__file__))
131
+ source, lineno = inspect.getsourcelines(obj)
132
+ return fn, lineno, lineno + len(source) - 1
133
+
134
+ if domain != "py" or not info["module"]:
135
+ return None
136
+ try:
137
+ filename = "skbase/%s#L%d-L%d" % find_source()
138
+ except Exception:
139
+ filename = info["module"].replace(".", "/") + ".py"
140
+ return f"https://github.com/sktime/skbase/blob/{version_match}/{filename}"
141
+
142
+
143
+ # -- Options for HTML output -------------------------------------------------
144
+
145
+ # The theme to use for HTML and HTML Help pages. See the documentation for
146
+ # a list of builtin themes.
147
+
148
+ html_theme = "pydata_sphinx_theme"
149
+
150
+ # Define the json_url for our version switcher.
151
+ json_url = "https://skbase.readthedocs.io/en/latest/_static/switcher.json"
152
+
153
+ # This uses code from the py-data-sphinx theme's own conf.py
154
+ # Define the version we use for matching in the version switcher.
155
+ version_match = os.environ.get("READTHEDOCS_VERSION")
156
+
157
+ # If READTHEDOCS_VERSION doesn't exist, we're not on RTD
158
+ # If it is an integer, we're in a PR build and the version isn't correct.
159
+ if not version_match or version_match.isdigit():
160
+ # For local development, infer the version to match from the package.
161
+ if "dev" in release or "rc" in release:
162
+ version_match = "latest"
163
+ # We want to keep the relative reference if we are in dev mode
164
+ # but we want the whole url if we are effectively in a released version
165
+ json_url = "_static/switcher.json"
166
+ else:
167
+ version_match = "v" + release
168
+
169
+ html_theme_options = {
170
+ "logo": {
171
+ "text": "skbase",
172
+ "alt_text": "skbase",
173
+ },
174
+ "icon_links": [
175
+ {
176
+ "name": "GitHub",
177
+ "url": "https://github.com/sktime/skbase",
178
+ "icon": "fab fa-github",
179
+ },
180
+ {
181
+ "name": "Slack",
182
+ "url": "https://join.slack.com/t/skbase/shared_invite/zt-1qke3vzl2-fADjZBZadBlXsLUym5NlhA", # noqa: E501
183
+ "icon": "fab fa-slack",
184
+ },
185
+ {
186
+ "name": "PyPI",
187
+ "url": "https://pypi.org/project/skbase",
188
+ "icon": "fa-solid fa-box",
189
+ },
190
+ ],
191
+ "icon_links_label": "Quick Links",
192
+ "show_nav_level": 1,
193
+ "show_prev_next": False,
194
+ "use_edit_page_button": False,
195
+ "navbar_start": ["navbar-logo", "version-switcher"],
196
+ "navbar_center": ["navbar-nav"],
197
+ "switcher": {
198
+ "json_url": json_url,
199
+ "version_match": version_match,
200
+ },
201
+ "header_links_before_dropdown": 6,
202
+ }
203
+
204
+ html_context = {
205
+ "github_user": "sktime",
206
+ "github_repo": "skbase",
207
+ "github_version": "main",
208
+ "doc_path": "docs/source/",
209
+ "default_mode": "light",
210
+ }
211
+ html_sidebars = {"**": ["sidebar-nav-bs.html", "sidebar-ethical-ads.html"]}
212
+
213
+ # Add any paths that contain custom static files (such as style sheets) here,
214
+ # relative to this directory. They are copied after the builtin static files,
215
+ # so a file named "default.css" will overwrite the builtin "default.css".
216
+ html_static_path = ["_static"]
217
+
218
+ # -- Options for HTMLHelp output ---------------------------------------------
219
+ # Output file base name for HTML help builder.
220
+ htmlhelp_basename = "skbasedoc"
221
+
222
+
223
+ # -- Options for LaTeX output ------------------------------------------------
224
+ # latex_elements = {
225
+ # The paper size ('letterpaper' or 'a4paper').
226
+ # 'papersize': 'letterpaper',
227
+ # The font size ('10pt', '11pt' or '12pt').
228
+ # 'pointsize': '10pt',
229
+ # Additional stuff for the LaTeX preamble.
230
+ # 'preamble': '',
231
+ # Latex figure (float) alignment
232
+ # 'figure_align': 'htbp',
233
+ # }
234
+
235
+ # Grouping the document tree into LaTeX files. List of tuples
236
+ # (source start file, target name, title,
237
+ # author, documentclass [howto, manual, or own class]).
238
+ latex_documents = [
239
+ (
240
+ master_doc,
241
+ "skbase.tex",
242
+ "skbase Documentation",
243
+ "skbase developers",
244
+ "manual",
245
+ ),
246
+ ]
247
+
248
+ # -- Extension configuration -------------------------------------------------
249
+
250
+ # -- Options for numpydoc extension ------------------------------------------
251
+ # see http://stackoverflow.com/q/12206334/562769
252
+ numpydoc_show_class_members = True
253
+ # this is needed for some reason...
254
+ # see https://github.com/numpy/numpydoc/issues/69
255
+ numpydoc_class_members_toctree = False
256
+
257
+ numpydoc_validation_checks = {"all", "GL01", "SA01", "EX01"}
258
+
259
+ # -- Options for sphinx-copybutton extension----------------------------------
260
+ copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: "
261
+ copybutton_prompt_is_regexp = True
262
+
263
+ # -- Options for nbsphinx extension ------------------------------------------
264
+ nbsphinx_execute = "never" # always # whether to run notebooks
265
+ nbsphinx_allow_errors = False # False
266
+ nbsphinx_timeout = 600 # seconds, set to -1 to disable timeout
267
+
268
+ # add Binder launch buttom at the top
269
+ current_file = "{{ env.doc2path( env.docname, base=None) }}"
270
+
271
+ # make sure Binder points to latest stable release, not main
272
+ binder_base = "https://mybinder.org/v2/gh//skbase/"
273
+ binder_url = binder_base + f"{version_match}?filepath={current_file}"
274
+ nbsphinx_prolog = f"""
275
+ .. |binder| image:: https://mybinder.org/badge_logo.svg
276
+ .. _Binder: {binder_url}
277
+
278
+ |Binder|_
279
+ """
280
+
281
+ # add link to original notebook at the bottom
282
+ notebook_url = f"https://github.com/sktime/skbase/tree/{version_match}/{current_file}"
283
+ nbsphinx_epilog = f"""
284
+ ----
285
+
286
+ Generated using nbsphinx_. The Jupyter notebook can be found here_.
287
+
288
+ .. _here: {notebook_url}
289
+ .. _nbsphinx: https://nbsphinx.readthedocs.io/
290
+ """
291
+
292
+ # -- Options for intersphinx extension ---------------------------------------
293
+
294
+ # Example configuration for intersphinx: refer to the Python standard library.
295
+ intersphinx_mapping = {
296
+ "python": ("https://docs.python.org/{.major}".format(sys.version_info), None),
297
+ "scikit-learn": ("https://scikit-learn.org/stable/", None),
298
+ "sktime": ("https://www.sktime.org/en/stable/", None),
299
+ }
@@ -1,29 +1,29 @@
1
- BSD 3-Clause License
2
-
3
- Copyright (c) 2022, skbase Developers
4
- All rights reserved.
5
-
6
- Redistribution and use in source and binary forms, with or without
7
- modification, are permitted provided that the following conditions are met:
8
-
9
- 1. Redistributions of source code must retain the above copyright notice, this
10
- list of conditions and the following disclaimer.
11
-
12
- 2. Redistributions in binary form must reproduce the above copyright notice,
13
- this list of conditions and the following disclaimer in the documentation
14
- and/or other materials provided with the distribution.
15
-
16
- 3. Neither the name of the copyright holder nor the names of its
17
- contributors may be used to endorse or promote products derived from
18
- this software without specific prior written permission.
19
-
20
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2022, skbase Developers
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ 1. Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ 3. Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.