在介绍互信息之前,首先需要了解一下信息熵的概念:所谓信息熵,是指信息论中对一个随机变量不确定性的度量,对于随机变量x,信息熵的定义为: H ( x ) − ∑ x p ( x ) l o g p ( x ) H(x)-\sum_xp(x)logp(x) …
林浩然与杨凌芸的数学奇遇记:从选择公理到“分球术” Lin Haoran and Yang Lingyun’s Mathematical Adventure: From Axiom of Choice to the “Ball-Splitting Technique” 在一个普通的理工学院,有着两位志趣相投的好友——林浩然和杨凌芸。林浩然是个…
优化器学习
把搭建好的模型拿来训练,得到最优的参数。
import torch.optim
import torchvision
from torch import nn
from torch.nn import Sequential, Conv2d, MaxPool2d, Flatten, Linear
from torch.utils.data import DataLoaderdataset torchvision.datas…