This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import os | |
| import pandas as pd | |
| def parse_directory_structure(path): | |
| """Parse the directory structure and retrieve the train_runtime""" | |
| data = [] | |
| unique_jobs = set() # To track already processed jobs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import re | |
| import csv | |
| import logging | |
| from multiprocessing import Pool | |
| from tqdm import tqdm | |
| import pandas as pd | |
| # Set up logging | |
| def setup_logging(log_level=logging.INFO): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| This script lists and plots metrics for each CSV file found in the 'metric' directories under the specified base directory. | |
| It supports parallel processing of multiple folders and provides options to regenerate missing or incomplete graphs. | |
| Usage: | |
| python map-missing.py | |
| Author: | |
| Unknown |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| class JSONManager { | |
| struct DecodeReturn<T: Decodable> { | |
| var value: T | |
| var error: (any Error)? | |
| } | |
| static func encodeJSON<T: Encodable>(_ data: T) throws -> Data? { |