cleaned up for submission
This commit is contained in:
3
Util.py
3
Util.py
@@ -2,6 +2,7 @@
|
||||
from pathlib import Path
|
||||
import os
|
||||
|
||||
# used for logging metrics to files
|
||||
def _log_to_csv(arch, mode, accuracy, report_dict, strategy):
|
||||
"""Handles directory structures, file setups, and distinct CSV column formatting."""
|
||||
#arch_name = model.__class__.__name__.lower()
|
||||
@@ -33,7 +34,7 @@ def _log_to_csv(arch, mode, accuracy, report_dict, strategy):
|
||||
|
||||
print(f">> Direct CSV metrics appended to {csv_path}")
|
||||
|
||||
|
||||
# creates a file for
|
||||
def _initialize_log_file(log_file):
|
||||
"""Creates a unique log file for this strategy with a header if it doesn't exist."""
|
||||
log_file.parent.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
Reference in New Issue
Block a user