- 博客(8)
- 收藏
- 关注
原创 pytorch.geomatric 中Planetoid类
Planetoid是 torch_geometric.datasets中的一个类。利用Planetoid类可以处理三个数据集,分别为“Cora”、“CiteSeer”和“PubMed”。这三个数据集是“Revisiting Semi-Supervised Learning with Graph Embeddings”论文中的引文网络数据集。
2022-02-11 18:42:22
7293
原创 Can‘t pickle typing.Union[torch.Tensor, NoneType]: it‘s not the same object as typing.Union
在使用torch.save()时出现了下面的错误:_pickle.PicklingError: Can't pickle typing.Union[torch.Tensor, NoneType]: it's not the same object as typing.Union
2022-01-29 23:55:49
2491
1
原创 防止过拟合之提前终止(Early Stopping)
当我们训练深度学习神经网络的时候通常希望能获得最好的泛化性能。但是所有的标准深度学习神经网络结构如MLP都很容易过拟合:当网络在训练集上的错误率越来越低的时候,实际上在某一刻,它在测试集的表现已经开始变差。一个简单且有效的方法便是提前终止(Early Stopping)
2022-01-29 20:53:14
4784
原创 numpy中matrix的坑
在看一篇利用numpy实现简单的GCN网络的文章时,遇到了matplotlib中scatter函数一直显示“Masked arrays must be 1-D”这个错误。后面查阅资料得知是numpy中matrix中的坑。
2022-01-23 12:58:50
1255
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人