-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation: Overview methods, ESN modules, & API overhaul (#58)
* actually installing via pip does not work * methods overview init * initial distributed docs * make dense matrices the default.. and fix the kwargs.pop bug * there shouldnt be a default for boundary * methods basically done * standard esn usage overhauled * lazy usage updated ; normalize data in both * some little details * nice printing ... final details done * cleaned up api presentation * documented these finally * some more details * build docs in PR * try this * remove source code from index ; debug docs build workflow * simplify workflow dramatically * fix now hidden properties in lazy ; make boundary like overlap.. as documented... and test it
- Loading branch information
Showing
21 changed files
with
6,089 additions
and
1,670 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
name: Build Documentation | ||
on: | ||
pull_request: | ||
branches: | ||
- "*" | ||
|
||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Cache conda | ||
uses: actions/cache@v2 | ||
env: | ||
CACHE_NUMBER: 0 | ||
with: | ||
path: ~/conda_pkgs_dir | ||
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('docs/environment.yaml') }} | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: xesn | ||
auto-update-conda: false | ||
python-version: 3.11 | ||
environment-file: docs/environment.yaml | ||
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! | ||
- name: Build Docs | ||
shell: bash -l {0} | ||
run: | | ||
cd docs ; make html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
source/xesn | ||
generated/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{{ objname | escape | underline}} | ||
|
||
.. currentmodule:: {{ module }} | ||
|
||
.. autoclass:: {{ objname }} | ||
|
||
{% block methods %} | ||
{% if methods %} | ||
.. rubric:: Methods | ||
.. autosummary:: | ||
:toctree: | ||
{% for item in methods %} | ||
{{ name }}.{{ item }} | ||
{% endfor %} | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block attributes %} | ||
{% if attributes %} | ||
.. rubric:: Attributes | ||
.. autosummary:: | ||
{% for item in attributes %} | ||
{{ name }}.{{ item }} | ||
{% endfor %} | ||
{% endif %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,36 @@ | ||
API | ||
### | ||
API Reference | ||
############# | ||
|
||
|
||
ESN Models and Utilities | ||
------------------------ | ||
|
||
.. autosummary:: | ||
xesn.Driver | ||
:toctree: generated/ | ||
|
||
xesn.ESN | ||
xesn.LazyESN | ||
xesn.from_zarr | ||
|
||
.. autoclass:: xesn.Driver | ||
:members: | ||
|
||
.. autoclass:: xesn.ESN | ||
:members: | ||
|
||
.. autoclass:: xesn.LazyESN | ||
:members: | ||
Optimization Tools | ||
------------------ | ||
|
||
.. autofunction:: xesn.from_zarr | ||
|
||
.. autoclass:: xesn.XData | ||
:members: | ||
|
||
.. autoclass:: xesn.RandomMatrix | ||
:members: | ||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
.. autoclass:: xesn.SparseRandomMatrix | ||
:members: | ||
xesn.cost.CostFunction | ||
xesn.optim.optimize | ||
xesn.optim.transform | ||
xesn.optim.inverse_transform | ||
|
||
.. autoclass:: xesn.cost.CostFunction | ||
:members: | ||
|
||
.. autofunction:: xesn.optim.optimize | ||
Everything Else | ||
--------------- | ||
|
||
.. autofunction:: xesn.optim.transform | ||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
.. autofunction:: xesn.optim.inverse_transform | ||
xesn.Driver | ||
xesn.RandomMatrix | ||
xesn.SparseRandomMatrix | ||
xesn.XData |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.