1
0

refactor: merge multiple project into one and create new project

This commit is contained in:
2026-04-07 08:30:41 +08:00
parent 7aa7ae3335
commit 6cb1a89751
49 changed files with 2932 additions and 4 deletions

View File

@@ -0,0 +1,12 @@
from pathlib import Path
MNIST_DATASET_PATH: Path = Path(__file__).resolve().parent.parent / 'datasets' / 'mnist.npz'
"""MNIST数据集文件的路径"""
SAVED_MODEL_PATH: Path = Path(__file__).resolve().parent.parent / 'models' / 'cnn.pth'
"""训练好的模型保存的位置"""
N_EPOCH: int = 5
"""训练时的epoch次数"""
N_BATCH_SIZE: int = 1000
"""训练时的batch size"""