文章浏览阅读2.4k次,点赞6次,收藏24次。预备知识torch.utils.data.DataLoader使用方法 加载手写数据集load_digits() sklearn的train_test_split()的参数含义解释_torch数据集...
2024-01-23 03:14 阅读 阅读全文文章浏览阅读7.2k次,点赞8次,收藏48次。1.加载数据集一个快速体验学习的小tip在google的云jupyter上做实验,速度快的飞起。import torchfrom torch.nn import Linear, ReLUimport torch.nn as nnimport numpy as npfrom torch.autograd import Variablefrom torchvision i......
2024-09-16 03:24 阅读 阅读全文文章浏览阅读358次。mnist是灰度图,给出的应该是transforms.Normalize((0.1307 ), (0.3081 ))cifar10是transforms.Normalize((0.4914, 0.4822, 0.4465), (0.2023, 0.1994, 0.2010))imagenet是([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])原文链接:https://blog.csdn.net/weixin_45885232/a......
2023-11-12 04:59 阅读 阅读全文