-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add layer collection and metrics documentation
- Loading branch information
Showing
3 changed files
with
26 additions
and
3 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,16 @@ | ||
Layer collection | ||
================ | ||
|
||
Layer collections describe the structure of parameters that will be differentiated. We need the LayerCollection object in order to be able to map components of different objects together. As an example, when performing a matrix-vector product using a block diagonal representation, we need to make sure that elements of the vector corresponding to parameters from layer 1 are multiplied with the diagonal block also corresponding to parameters from layer 1, and so on. | ||
|
||
Typical use cases include: | ||
|
||
- All parameters of your network: for this you can simply use the constructor :func:`nngeometry.layercollection.LayerCollection.from_model` | ||
- Only parameters from some layers of your network. In this case you need to | ||
1. instantiate a new LayerCollection object | ||
2. add your layers one at a time using :func:`nngeometry.layercollection.LayerCollection.add_layer_from_model` | ||
|
||
|
||
.. automodule:: nngeometry.layercollection | ||
:members: | ||
:undoc-members: |
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,7 @@ | ||
Metrics | ||
======= | ||
|
||
Metrics introduction | ||
|
||
.. automodule:: nngeometry.metrics | ||
:members: |
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