Skip to content

Commit

Permalink
Removed duplicated n_epoch parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
jeipollack committed Oct 31, 2023
1 parent 36547c2 commit f94afc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 0 additions & 5 deletions config/training_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,6 @@ training:

# Training hyperparameters
training_hparams:
# Number of epochs for the training the parametric model parameters
n_epochs_params: [2, 2]

# Number of epochs for the training the non-parametric model parameters
n_epochs_non_params: [2, 2]

# Batch Size
batch_size: 32
Expand Down
6 changes: 3 additions & 3 deletions src/wf_psf/training/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def total_cycles(self):

@property
def n_epochs_params(self):
"""Number of Epochs for Pparametric PSF model.
"""Number of Epochs for Parametric PSF model.
Set the number of epochs for
training parametric PSF model.
Expand All @@ -158,7 +158,7 @@ def n_epochs_params(self):
List of number of epochs for training parametric PSF model.
"""
return self.training_hparams.n_epochs_params
return self.multi_cycle_params.n_epochs_params

@property
def n_epochs_non_params(self):
Expand All @@ -173,7 +173,7 @@ def n_epochs_non_params(self):
List of number of epochs for training non-parametric PSF model.
"""
return self.training_hparams.n_epochs_non_params
return self.multi_cycle_params.n_epochs_non_params

@property
def learning_rate_params(self):
Expand Down

0 comments on commit f94afc0

Please sign in to comment.