riccardo / Save and load hyperparameters
0 likes
0 forks
1 files
Last active 9 months ago
Save and load hyperparameters for model training and evaluation
| 1 | from datetime import datetime |
| 2 | from pathlib import Path |
| 3 | |
| 4 | import yaml |
| 5 | |
| 6 | |
| 7 | # Define the model |
| 8 | class MyModel: |
| 9 | def __init__( |
| 10 | self, |
riccardo / MP Distribution
0 likes
0 forks
1 files
Last active 9 months ago
Definition of a Marchenko-Pastur distribution
| 1 | import numpy as np |
| 2 | |
| 3 | from numpy.typing import ArrayLike |
| 4 | |
| 5 | class MarchenkoPastur: |
| 6 | """Definition of a Marchenko-Pastur distribution""" |
| 7 | |
| 8 | def __init__(self, ratio: float, sigma: float = 1.0): |
| 9 | """ |
| 10 | Parameters |
Newer
Older