Skip to content

Commit b7d4dc9

Browse files
MNT refactor narx module (#125)
1 parent e30a3cd commit b7d4dc9

25 files changed

+1625
-1576
lines changed

doc/conf.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
import importlib.metadata
1111
from datetime import datetime
1212

13-
# project root
14-
# sys.path.insert(0, os.path.abspath(".."))
1513
# General information about the project.
1614
project = "fastcan"
1715
copyright = f"2024 - {datetime.now().year}, fastcan developers (MIT License)"
@@ -59,6 +57,7 @@
5957

6058
# generate autosummary even if no references
6159
autosummary_generate = True
60+
autosummary_ignore_module_all = False
6261

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

doc/index.rst

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,13 @@ Architecture Diagram
1717

1818
API Reference
1919
-------------
20-
.. automodule:: fastcan
20+
.. autosummary::
21+
:toctree: generated/
22+
:template: module.rst
2123

22-
.. rubric:: Classes
23-
24-
.. autosummary::
25-
:toctree: generated/
26-
27-
FastCan
28-
29-
.. rubric:: Functions
30-
31-
.. autosummary::
32-
:toctree: generated/
33-
34-
refine
35-
minibatch
36-
37-
.. rubric:: Submodules
38-
39-
.. autosummary::
40-
:toctree: generated/
41-
42-
narx
43-
utils
24+
fastcan
25+
fastcan.narx
26+
fastcan.utils
4427

4528
Useful Links
4629
------------
File renamed without changes.
File renamed without changes.

doc/templates/autosummary/module.rst renamed to doc/templates/module.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
.. autosummary::
1010
:toctree:
11+
:template: class.rst
1112
{% for item in classes %}
1213
{{ item }}
1314
{%- endfor %}
@@ -21,6 +22,7 @@
2122

2223
.. autosummary::
2324
:toctree:
25+
:template: function.rst
2426
{% for item in functions %}
2527
{{ item }}
2628
{%- endfor %}

fastcan/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""
2-
The implementation of fast canonical correlation analysis based feature selection
3-
algorithm.
2+
Fast canonical correlation analysis based greedy search algorithm.
43
"""
54

65
# Authors: The fastcan developers

fastcan/_cancorr_fast.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Fast feature selection with sum squared canonical correlation coefficients
2+
Fast forward greedy search with sum squared canonical correlation coefficients.
33
"""
44
# Authors: The fastcan developers
55
# SPDX-License-Identifier: MIT

fastcan/_fastcan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Feature selection
2+
Fast canonical correlation analysis based selector.
33
"""
44

55
# Authors: The fastcan developers

fastcan/_minibatch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Feature selection with mini-batch.
2+
Mini-batch selection.
33
"""
44

55
# Authors: The fastcan developers

fastcan/_refine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Refine fastcan selection results
2+
Refine fastcan selection results.
33
"""
44

55
# Authors: The fastcan developers

0 commit comments

Comments
 (0)