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
| def train( | |
| model: MikesNN, | |
| train_loader: DataLoader, | |
| config: ExperimentConfig, | |
| logger: Logger | None = None, | |
| ): | |
| num_epochs = config.num_epochs | |
| learning_rate = config.learning_rate | |
| device = config.device |
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 hashlib | |
| import importlib | |
| import json | |
| import logging | |
| import os | |
| import random | |
| import time | |
| from contextlib import contextmanager | |
| from dataclasses import asdict, dataclass, field, make_dataclass | |
| from datetime import datetime, timezone |
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
| from __future__ import annotations | |
| import base64 | |
| import dataclasses | |
| import hashlib | |
| import importlib | |
| import json | |
| import os | |
| import re | |
| import tempfile |
OlderNewer