Tag: python
Fri Mar 28 2025
1043 words · 4 minutes
PyTorch 中划分训练集和测试集的方法
详细介绍在 PyTorch 中使用 random_split、Subset 以及 sklearn 的 train_test_split 划分数据集的三种方法
Fri Mar 28 2025
712 words · 3 minutes
Python 获取字典中最大 Value 及其 Key 的方法
介绍几种在 Python 中快速获取字典最大值及其对应键的高效方法