Update the docs to include the reconstructors class and discuss their use in the examples

This commit is contained in:
levita_a committed 2025-10-16 14:43:04 +02:00
1 parent 3c8de5dc19
commit 8328b852d3
5 files changed
+29 -19

No files matched your search

+10 -8
View File
@@ -45,14 +45,16 @@ class Reconstructor:
subset : list(int) or int
Optional, a pattern index or list of pattern indices to use
Important attributes:
- **model** -- Always points to the core model used.
- **optimizer** -- A `torch.optim.Optimizer` that must be defined when
initializing the Reconstructor subclass.
- **scheduler** -- A `torch.optim.lr_scheduler` that may be defined during
the `optimize` method.
- **data_loader** -- A torch.utils.data.DataLoader that is defined by
calling the `setup_dataloader` method.
Attributes
----------
model : CDIModel
Points to the core model used.
optimizer : torch.optim.Optimizer
Must be defined when initializing the Reconstructor subclass.
scheduler : torch.optim.lr_scheduler, optional
May be defined during the ``optimize`` method.
data_loader : torch.utils.data.DataLoader
Defined by calling the ``setup_dataloader`` method.
"""
def __init__(self,
model: CDIModel,