全部 新建

user:thomas 由使用者建立的 Gists

title:mygist Gists 的標題

filename:myfile.txt Gists 的檔案名稱

extension:yml Gists 的副檔名

language:go Gists 的程式語言

topic:homelab gists with given topic

註冊

登錄


全部 新建 註冊 登錄

所有 Gists

倒序排序 創建
順序排序 創建
倒序排序 更新
順序排序 更新
riccardo's Avatar

riccardo / Save and load hyperparameters

0 喜歡
0 分支
1 檔案
最後活躍 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 喜歡
0 分支
1 檔案
最後活躍 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
上一頁 下一頁

由 Opengist 提供支持 ⋅ Load: 60ms⋅

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