-
Notifications
You must be signed in to change notification settings - Fork 17
Documentation overhaul #444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dmdunla
wants to merge
46
commits into
main
Choose a base branch
from
dev-documentation-overhaul
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
534af02
checkpoint
dmdunla e1301b5
First attempt at using autosummary in sphinx documentation
dmdunla d4b989b
Fixing ruff issues
dmdunla a90fed9
Trying to get the toctree populated.
dmdunla 292f451
Ruff fixes
dmdunla 63bfe87
Checkpoint
dmdunla ec82694
Fixing merge conflict
dmdunla d50a257
Merge branch 'main' into dev-documentation-overhaul
dmdunla 9d99181
Fixing doc problems with recent merges
dmdunla f785ff4
Another round of updates, still getting warnings/errors with intersphinx
dmdunla 279d3af
More attempts at fixes
dmdunla 683cbaa
Ruff fix
dmdunla 2aebab4
Updating sphinx build flags to better align to RTD.
dmdunla 617c0c8
Merge branch 'main' into dev-documentation-overhaul
dmdunla 2da7cc1
Merge branch 'main' into dev-documentation-overhaul
dmdunla 5e97fd5
Checkpoint on tensor class
dmdunla a022ab9
Fix formatting
dmdunla 012b01a
Updating tensor docstrings.
dmdunla 84c3604
Updating doctest output for floats
dmdunla d8a604d
Adding normalize_whitespace directive to address mix of ints and floa…
dmdunla c43e939
More doctest fixes
dmdunla f4528a0
Checkpoint
dmdunla 575e8c3
Merge remote-tracking branch 'origin/main' into dev-documentation-ove…
dmdunla bdd3fa2
Merge remote-tracking branch 'origin/main' into dev-documentation-ove…
dmdunla ea08ab4
Cleaning merge with recent updates to main
dmdunla 5e3e576
Fixing sphinx output
dmdunla 50265a7
Merge branch 'main' into dev-documentation-overhaul
dmdunla cc549d9
Fixing docstring error
dmdunla 8270a15
Merge branch 'dev-documentation-overhaul' of github.com:sandialabs/py…
dmdunla d470e55
More refactor fixes
dmdunla 223d6c1
sptensor formatting
dmdunla 051dfc3
checkpoint
dmdunla 81edc07
sptensor docs
dmdunla be856ef
Fixed sphinx issue
dmdunla 17862ba
Fixing tenmat formatting, removing extra spaces
dmdunla d06eee4
Completing ktensor. Alignment in tensor and sptensor.
dmdunla 0186fab
Adding order of methods in dev docs.
dmdunla 1d26175
Fixing issues identified in Nick's PR review.
dmdunla b49ba01
Ruff fix.
dmdunla 0403d5b
Adding sphinx-toolbox to doc deps to support multiple overloads in sp…
dmdunla d428b76
Ruff fix.
dmdunla 25bb235
Removing inheritance in docs.
dmdunla c3c079f
Consistent spelling for element-wise.
dmdunla 7afcaab
Converting all Returns sections to paragraphs in main summary.
dmdunla 7463e80
Check on method ordering and removing extra spaces.
dmdunla e982fbe
Adjusting using ruff formatting rules.
dmdunla File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,8 +1,10 @@ | ||
| CP Alternating Least Squares (:obj:`cp_als`) | ||
| ============================================ | ||
| .. note:: | ||
|
|
||
| The ``cp_als`` function defined in ``cp_als.py`` has been promoted to the ``pyttb`` namespace. | ||
| CP Alternating Least Squares (:obj:`pyttb.cp_als`) | ||
| ================================================== | ||
|
|
||
| For *all* examples in this document, the following module imports are assumed:: | ||
|
|
||
| >>> import pyttb as ttb | ||
| >>> import numpy as np | ||
|
|
||
| .. autofunction:: pyttb.cp_als | ||
|
|
This file contains hidden or 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,8 +1,10 @@ | ||
| CP Alternating Poisson Regression (:obj:`cp_apr`) | ||
| ================================================= | ||
| .. note:: | ||
|
|
||
| The ``cp_apr`` function defined in ``cp_apr.py`` has been promoted to the ``pyttb`` namespace. | ||
| CP Alternating Poisson Regression (:obj:`pyttb.cp_apr`) | ||
| ======================================================= | ||
|
|
||
| For *all* examples in this document, the following module imports are assumed:: | ||
|
|
||
| >>> import pyttb as ttb | ||
| >>> import numpy as np | ||
|
|
||
| .. autofunction:: pyttb.cp_apr | ||
|
|
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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,8 +1,9 @@ | ||
| Tucker Higher-Order SVD (:obj:`hosvd`) | ||
| ====================================== | ||
| .. note:: | ||
|
|
||
| The ``hosvd`` function defined in ``hosvd.py`` has been promoted to the ``pyttb`` namespace. | ||
| Tucker Higher-Order SVD (:obj:`pyttb.hosvd`) | ||
| ============================================ | ||
|
|
||
| For *all* examples in this document, the following module imports are assumed:: | ||
|
|
||
| >>> import pyttb as ttb | ||
| >>> import numpy as np | ||
|
|
||
| .. autofunction:: pyttb.hosvd |
This file contains hidden or 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,11 +1,12 @@ | ||
| Kruskal Tensor (:class:`ktensor`) | ||
| --------------------------------- | ||
| .. note:: | ||
|
|
||
| The ``ktensor`` class defined in ``ktensor.py`` has been promoted to the ``pyttb`` namespace. | ||
| Kruskal Tensor (:class:`pyttb.ktensor`) | ||
| ======================================= | ||
|
|
||
| For *all* examples in this document, the following module imports are assumed:: | ||
|
|
||
| >>> import pyttb as ttb | ||
| >>> import numpy as np | ||
|
|
||
| .. autoclass:: pyttb.ktensor | ||
| :members: | ||
| :special-members: | ||
| :exclude-members: __dict__, __weakref__, __slots__ | ||
| :show-inheritance: | ||
| :exclude-members: __init__, __dict__, __weakref__, __deepcopy__ |
This file contains hidden or 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,10 +1,15 @@ | ||
| Helper Functions (:mod:`pyttb_utils`, :mod:`khatrirao`) | ||
| -------------------------------------------------------- | ||
| Helper Functions (:mod:`pyttb.pyttb_utils`, :mod:`pyttb.khatrirao`) | ||
| =================================================================== | ||
|
|
||
| .. autofunction:: pyttb.khatrirao.khatrirao | ||
| For *all* examples in this document, the following module imports are assumed:: | ||
|
|
||
| >>> import pyttb as ttb | ||
| >>> import numpy as np | ||
|
|
||
| .. automodule:: pyttb.pyttb_utils | ||
| :members: | ||
| :special-members: | ||
| :exclude-members: __dict__, __weakref__, __slots__ | ||
| :show-inheritance: | ||
| :show-inheritance: | ||
|
|
||
| .. autofunction:: pyttb.khatrirao.khatrirao |
This file contains hidden or 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,11 +1,13 @@ | ||
| Sparse Tensor as Matrix (:class:`sptenmat`) | ||
| ------------------------------------------- | ||
| .. note:: | ||
|
|
||
| The ``sptenmat`` class defined in ``sptenmat.py`` has been promoted to the ``pyttb`` namespace. | ||
| Sparse Tensor as Matrix (:class:`pyttb.sptenmat`) | ||
| ================================================= | ||
|
|
||
| For *all* examples in this document, the following module imports are assumed:: | ||
|
|
||
| >>> import pyttb as ttb | ||
| >>> import numpy as np | ||
|
|
||
| .. autoclass:: pyttb.sptenmat | ||
| :members: | ||
| :special-members: | ||
| :exclude-members: __dict__, __weakref__, __slots__ | ||
| :exclude-members: __init__, __dict__, __weakref__, __deepcopy__ | ||
| :show-inheritance: |
This file contains hidden or 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,14 +1,15 @@ | ||
| Sparse Tensor (:class:`sptensor`) | ||
| --------------------------------- | ||
| .. note:: | ||
|
|
||
| Classes and functions defined in ``sptensor.py`` have been promoted to the ``pyttb`` namespace. | ||
| Sparse Tensor (:class:`pyttb.sptensor`) | ||
| ======================================= | ||
|
|
||
| For *all* examples in this document, the following module imports are assumed:: | ||
|
|
||
| >>> import pyttb as ttb | ||
| >>> import numpy as np | ||
|
|
||
| .. autoclass:: pyttb.sptensor | ||
| :members: | ||
| :special-members: | ||
| :exclude-members: __dict__, __weakref__, __slots__ | ||
| :show-inheritance: | ||
| :exclude-members: __init__, __dict__, __weakref__, __deepcopy__ | ||
|
|
||
| .. autofunction:: pyttb.sptendiag | ||
| .. autofunction:: pyttb.sptenrand | ||
| .. autofunction:: pyttb.sptendiag |
This file contains hidden or 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,12 +1,13 @@ | ||
| Sum Tensor (:class:`sumtensor`) | ||
| ------------------------------- | ||
| .. note:: | ||
|
|
||
| The ``sumtensor`` class defined in ``sumtensor.py`` has been promoted to the ``pyttb`` namespace. | ||
| Sum Tensor (:class:`pyttb.sumtensor`) | ||
| ===================================== | ||
|
|
||
| For *all* examples in this document, the following module imports are assumed:: | ||
|
|
||
| >>> import pyttb as ttb | ||
| >>> import numpy as np | ||
|
|
||
| .. autoclass:: pyttb.sumtensor | ||
| :members: | ||
| :special-members: | ||
| :exclude-members: __dict__, __weakref__, __slots__ | ||
| :exclude-members: __init__, __dict__, __weakref__, __deepcopy__ | ||
| :show-inheritance: |
This file contains hidden or 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,11 +1,13 @@ | ||
| Tensor as Matrix (:class:`tenmat`) | ||
| ---------------------------------- | ||
| .. note:: | ||
|
|
||
| The ``tenmat`` class defined in ``tenmat.py`` has been promoted to the ``pyttb`` namespace. | ||
| Tensor as Matrix (:class:`pyttb.tenmat`) | ||
| ======================================== | ||
|
|
||
| For *all* examples in this document, the following module imports are assumed:: | ||
|
|
||
| >>> import pyttb as ttb | ||
| >>> import numpy as np | ||
|
|
||
| .. autoclass:: pyttb.tenmat | ||
| :members: | ||
| :special-members: | ||
| :exclude-members: __dict__, __weakref__, __slots__ | ||
| :exclude-members: __init__, __dict__, __weakref__, __deepcopy__ | ||
| :show-inheritance: |
This file contains hidden or 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,22 +1,18 @@ | ||
| Dense Tensor (:class:`pyttb.tensor`) | ||
| ------------------------------------ | ||
| .. note:: | ||
|
|
||
| Classes and functions defined in ``tensor.py`` have been promoted to the ``pyttb`` namespace. | ||
| ==================================== | ||
|
|
||
| For *all* examples in this document, the following module imports are assumed:: | ||
| For *all* examples in this document, the following imports are assumed:: | ||
|
|
||
| >>> import pyttb as ttb | ||
| >>> import numpy as np | ||
|
|
||
| .. automodule:: pyttb.tensor | ||
| .. autoclass:: pyttb.tensor | ||
| :members: | ||
| :special-members: | ||
| :exclude-members: __dict__, __weakref__, __slots__, __deepcopy__ | ||
| :show-inheritance: | ||
| :exclude-members: __init__, __dict__, __weakref__, __deepcopy__ | ||
|
|
||
| .. autofunction:: pyttb.tenones | ||
| .. autofunction:: pyttb.tenzeros | ||
| .. autofunction:: pyttb.tenrand | ||
| .. autofunction:: pyttb.tendiag | ||
| .. autofunction:: pyttb.teneye | ||
| .. autofunction:: pyttb.tenones | ||
| .. autofunction:: pyttb.tenrand | ||
| .. autofunction:: pyttb.tenzeros |
This file contains hidden or 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,11 +1,13 @@ | ||
| Tucker tensor (:class:`pyttb.ttensor`) | ||
| -------------------------------------- | ||
| .. note:: | ||
|
|
||
| The ``ttensor`` class defined in ``ttensor.py`` has been promoted to the ``pyttb`` namespace. | ||
|
|
||
| For *all* examples in this document, the following imports are assumed:: | ||
|
|
||
| >>> import pyttb as ttb | ||
| >>> import numpy as np | ||
|
|
||
| .. autoclass:: pyttb.ttensor | ||
| :members: | ||
| :special-members: | ||
| :exclude-members: __dict__, __weakref__, __slots__ | ||
| :exclude-members: __init__, __dict__, __weakref__, __deepcopy__ | ||
| :show-inheritance: |
This file contains hidden or 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,7 +1,9 @@ | ||
| Tucker Alternating Least Squares (:obj:`pyttb.tucker_als`) | ||
| ========================================================== | ||
| .. note:: | ||
|
|
||
| The ``tucker_als`` function defined in ``tucker_als.py`` has been promoted to the ``pyttb`` namespace. | ||
|
|
||
| For *all* examples in this document, the following module imports are assumed:: | ||
|
|
||
| >>> import pyttb as ttb | ||
| >>> import numpy as np | ||
|
|
||
| .. autofunction:: pyttb.tucker_als |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.