hyrax.models.hsc_dcae
Classes
Helper module for HSCDAE to use the arcsinh function |
|
This autoencoder is designed to work with datasets that are prepared with Hyrax's HSC Data Set class. |
Module Contents
- class ArcsinhActivation(*args, **kwargs)[source]
Bases:
torch.nn.ModuleHelper module for HSCDAE to use the arcsinh function
Initialize internal Module state, shared by both nn.Module and ScriptModule.
- class HSCDCAE(config, data_sample=None)[source]
Bases:
torch.nn.ModuleThis autoencoder is designed to work with datasets that are prepared with Hyrax’s HSC Data Set class.
Initialize internal Module state, shared by both nn.Module and ScriptModule.
- train_step(batch)[source]
This function contains the logic for a single training step. i.e. the contents of the inner loop of a ML training process.
- Parameters:
batch (tuple) – A tuple containing the two values the loss function
- Returns:
Current loss value – Dictionary containing the loss value for the current batch.
- Return type:
dict