All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Register

Login


All New Register Login

All gists

Recently created
Least recently created
Recently updated
Least recently updated
riccardo's Avatar

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's Avatar

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

Powered by Opengist ⋅ Load: 63ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文