@@ -1038,7 +1038,7 @@ class ParametersRunning(ParametersBase):
10381038 - "tensorboard": Tensorboard logger.
10391039 - "wandb": Weights and Biases logger.
10401040
1041- validation_metrics : list
1041+ logging_metrics : list
10421042 List of metrics to be used for validation. Default is ["ldos"].
10431043 Possible options are:
10441044
@@ -1053,10 +1053,10 @@ class ParametersRunning(ParametersBase):
10531053 - "dos": Density of states.
10541054 - "dos_relative": Density of states (MAPE).
10551055
1056- validate_on_training_data : bool
1056+ log_metrics_on_train_set : bool
10571057 Whether to validate on the training data as well. Default is False.
10581058
1059- validate_every_n_epochs : int
1059+ logging_metrics_freq : int
10601060 Determines how often validation is performed. Default is 1.
10611061
10621062 training_log_interval : int
@@ -1103,8 +1103,8 @@ def __init__(self):
11031103 self .learning_rate_scheduler = None
11041104 self .learning_rate_decay = 0.1
11051105 self .learning_rate_patience = 0
1106- self ._during_training_metric = "ldos"
1107- self ._after_training_metric = "ldos"
1106+ self ._validation_metric = "ldos"
1107+ self ._final_validation_metric = "ldos"
11081108 # self.use_compression = False
11091109 self .num_workers = 0
11101110 self .use_shuffling_for_samplers = True
@@ -1116,9 +1116,9 @@ def __init__(self):
11161116 self .logging_dir = "./mala_logging"
11171117 self .logging_dir_append_date = True
11181118 self .logger = None
1119- self .validation_metrics = ["ldos" ]
1120- self .validate_on_training_data = False
1121- self .validate_every_n_epochs = 1
1119+ self .logging_metrics = ["ldos" ]
1120+ self .log_metrics_on_train_set = False
1121+ self .logging_metrics_freq = 1
11221122 self .inference_data_grid = [0 , 0 , 0 ]
11231123 self .use_mixed_precision = False
11241124 self .use_graphs = False
@@ -1137,11 +1137,11 @@ def _update_ddp(self, new_ddp):
11371137 New DDP setting.
11381138 """
11391139 super (ParametersRunning , self )._update_ddp (new_ddp )
1140- self .during_training_metric = self .during_training_metric
1141- self .after_training_metric = self .after_training_metric
1140+ self .validation_metric = self .validation_metric
1141+ self .final_validation_metric = self .final_validation_metric
11421142
11431143 @property
1144- def during_training_metric (self ):
1144+ def validation_metric (self ):
11451145 """
11461146 Control the metric used during training.
11471147
@@ -1153,22 +1153,22 @@ def during_training_metric(self):
11531153 DFT results. Of these, the mean average error in eV/atom will be
11541154 calculated.
11551155 """
1156- return self ._during_training_metric
1156+ return self ._validation_metric
11571157
1158- @during_training_metric .setter
1159- def during_training_metric (self , value ):
1158+ @validation_metric .setter
1159+ def validation_metric (self , value ):
11601160 if value != "ldos" :
11611161 if self ._configuration ["ddp" ]:
11621162 raise Exception (
11631163 "Currently, MALA can only operate with the "
11641164 '"ldos" metric for ddp runs.'
11651165 )
1166- if value not in self .validation_metrics :
1167- self .validation_metrics .append (value )
1168- self ._during_training_metric = value
1166+ if value not in self .logging_metrics :
1167+ self .logging_metrics .append (value )
1168+ self ._validation_metric = value
11691169
11701170 @property
1171- def after_training_metric (self ):
1171+ def final_validation_metric (self ):
11721172 """
11731173 Get the metric used during training.
11741174
@@ -1180,17 +1180,17 @@ def after_training_metric(self):
11801180 DFT results. Of these, the mean average error in eV/atom will be
11811181 calculated.
11821182 """
1183- return self ._after_training_metric
1183+ return self ._final_validation_metric
11841184
1185- @after_training_metric .setter
1186- def after_training_metric (self , value ):
1185+ @final_validation_metric .setter
1186+ def final_validation_metric (self , value ):
11871187 if value != "ldos" :
11881188 if self ._configuration ["ddp" ]:
11891189 raise Exception (
11901190 "Currently, MALA can only operate with the "
11911191 '"ldos" metric for ddp runs.'
11921192 )
1193- self ._after_training_metric = value
1193+ self ._final_validation_metric = value
11941194
11951195 @property
11961196 def use_graphs (self ):
0 commit comments