Making remote training work better.
[python_utils.git] / ml / model_trainer.py
index ab3059f855388d06b8077a359897bb07ef5b2bc9..f9e132e18aa20ecf2461db55257b6037a0c13a4e 100644 (file)
@@ -218,7 +218,7 @@ class TrainingBlueprint(ABC):
                 line = line.strip()
                 try:
                     (key, value) = line.split(self.spec.key_value_delimiter)
-                except Exception as e:
+                except Exception:
                     logger.debug(f"WARNING: bad line in file {filename} '{line}', skipped")
                     continue
 
@@ -376,7 +376,7 @@ class TrainingBlueprint(ABC):
                 print(msg)
                 logger.info(msg)
                 model_info_filename = f"{self.spec.basename}_model_info.txt"
-                now: datetime.datetime = datetime_utils.now_pst()
+                now: datetime.datetime = datetime_utils.now_pacific()
                 info = f"""Timestamp: {datetime_utils.datetime_to_string(now)}
 Model params: {params}
 Training examples: {num_examples}