我已经创建了一个pytorch模型,我想缩小模型的大小。定义模型架构:-import torch.quantizationimport copyimport timeimport torch.autograd as autogradimport torch.nn.utils.prune as pruneimport os
正如预期的那样,训练和验证分数随着多项式次数的增加而增加,但在某种程度上,大约20个东西开始变得奇怪,分数开始下降,模型返回的多项式看起来与我用来训练它的数据完全不同。the degree of the polynomium')plt.ylabel('score');
我知道,当模型的复杂性增加时,验证分数会下降,但为什么训练分数也会下降呢