Skip to content

Commit

Permalink
How-to for Rules, Composites and Canonizers
Browse files Browse the repository at this point in the history
- how-to file for composites and canonizers now include rules
- move the how-to file to reflect the change
- updated reference in how-to/index.rst and getting-started.rst
- updated docstring typo in types.py
  • Loading branch information
chr5tphr committed Dec 15, 2021
1 parent 6251a9e commit 37f30ec
Show file tree
Hide file tree
Showing 5 changed files with 422 additions and 10 deletions.
8 changes: 4 additions & 4 deletions docs/source/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ The following computes LRP relevance using the ``EpsilonPlusFlat`` composite:
The context created by :py:func:`zennit.core.Composite.context` registers the
composite, which means that all rules are applied according to the composite's
mapping. See :doc:`/how-to/use-composites-and-canonizers` for information on
mapping. See :doc:`/how-to/use-rules-composites-and-canonizers` for information on
using composites, :py:mod:`zennit.composites` for an API reference and
:doc:`/how-to/write-custom-compositors` for writing new compositors. Available
``Rules`` can be found in :py:func:`zennit.rules`, their use is described in
:doc:`/how-to/write-custom-rules` and how to add new ones is described in
``Rules`` can be found in :py:mod:`zennit.rules`, their use is described in
:doc:`/how-to/use-rules-composites-and-canonizers` and how to add new ones is described in
:doc:`/how-to/write-custom-rules`.

Attributors
Expand Down Expand Up @@ -165,7 +165,7 @@ which may be used when ``BatchNorm`` is used in sequential models. Note that for
``SequentialMergeBatchNorm`` to work, all functions (linear layers, activations,
...) must be modules and assigned to their parent module in the order they are
visited (see :py:class:`zennit.canonizers.SequentialMergeBatchNorm`). For more
information on canonizers see :doc:`/how-to/use-composites-and-canonizers` and
information on canonizers see :doc:`/how-to/use-rules-composites-and-canonizers` and
:doc:`/how-to/write-custom-canonizers`.


Expand Down
2 changes: 1 addition & 1 deletion docs/source/how-to/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ These How-Tos give more detailed information on how to use Zennit.
.. toctree::
:maxdepth: 1

use-composites-and-canonizers
use-rules-composites-and-canonizers
use-attributors
visualize-results
write-custom-compositors
Expand Down
4 changes: 0 additions & 4 deletions docs/source/how-to/use-composites-and-canonizers.rst

This file was deleted.

Loading

0 comments on commit 37f30ec

Please sign in to comment.