Skip to content

Commit

Permalink
Fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
adrhill committed Jan 31, 2023
1 parent 0aaa4ee commit e4ebfb9
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 29 deletions.
3 changes: 1 addition & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
# The full version, including alpha/beta/rc tags
release = "not set"


# -- General configuration ---------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
Expand Down Expand Up @@ -59,7 +58,7 @@
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = "en"

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand Down
1 change: 0 additions & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ API reference

modules/innvestigate
modules/analyzer
modules/applications
modules/tools
modules/utils

Expand Down
7 changes: 0 additions & 7 deletions docs/source/modules/analyzer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ Layer-wise relevance propagation
:undoc-members:


Pattern methods
---------------

.. automodule:: innvestigate.analyzer.pattern_based
:members:
:undoc-members:

Deep Taylor
---------------

Expand Down
10 changes: 0 additions & 10 deletions docs/source/modules/applications.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/source/modules/tools.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
innvestigate.tools
==================

Pattern Computation
---------------

.. automodule:: innvestigate.tools.pattern
:members: PatternComputer
:undoc-members: BasePattern

Perturbation Analysis
---------------

Expand Down
4 changes: 2 additions & 2 deletions docs/source/modules/utils.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ Visualizations
Keras-Utils
------------

.. automodule:: innvestigate.utils.keras.graph
:members: copy_layer, copy_layer_wo_act, model_wo_softmax, get_model_execution_graph, reverse_model
.. automodule:: innvestigate.backend.graph
:members: copy_layer, copy_layer_wo_activation, model_wo_softmax, get_model_execution_graph, reverse_model
:undoc-members:
3 changes: 3 additions & 0 deletions src/innvestigate/backend/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,7 @@ def reverse_model(
"""
Reverses a Keras model based on the given reverse functions.
Returns two values:
1. the reverted tensors for the according model inputs.
2. If `return_all_reversed_tensors` is true, a dictionary of all reversed tensors,
otherwise None.
Expand All @@ -1008,10 +1009,12 @@ def reverse_model(
:param reverse_mappings: Either a callable that matches layers to
mappings or a dictionary with layers as keys and mappings as values.
Allowed as mapping forms are:
* A function of form (A) f(Xs, Ys, reversed_Ys, reverse_state).
* A function of form f(B) f(layer, reverse_state) that returns
a function of form (A).
* A :class:`ReverseMappingBase` subclass.
:param default_reverse_mapping: A function that reverses layers for
which no mapping was given by param "reverse_mappings".
:param head_mapping: Map output tensors to new values before passing
Expand Down

0 comments on commit e4ebfb9

Please sign in to comment.