Skip to content

Commit

Permalink
Tweak evaluation docs
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasZahradnik committed Jul 11, 2022
1 parent e94f1d5 commit 64d471d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docs/evaluation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,11 @@ Saving and Loading Model
########################

When our model is trained, or we want to persist the model's state (e.g., make a checkpoint),
we can utilize the model instance method :py:meth:`~neuralogic.nn.base.AbstractNeuraLogic.state_dict`. The method puts all parameters' values into a dictionary that can be later saved (e.g., in JSON or in binary) or somehow manipulated.
we can utilize the model instance method :py:meth:`~neuralogic.nn.base.AbstractNeuraLogic.state_dict` (or :py:meth:`~neuralogic.nn.base.AbstractNeuraLogic.parameters`).
The method puts all parameters' values into a dictionary that can be later saved (e.g., in JSON or in binary) or somehow manipulated.

When we want to load a state into our model, we can then simply pass the state into :py:meth:`~neuralogic.nn.base.AbstractNeuraLogic.load_state_dict` method.

.. Warning::

The compatibility between backends for loading model state is ensured only for the **DyNet** and **Java** backends.

.. note::

Evaluators offer the same interface for saving/loading of the model.
Expand Down

0 comments on commit 64d471d

Please sign in to comment.