![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
pytorch
suyongcai1234
这个作者很懒,什么都没留下…
展开
-
【画热力图heatmap】
## 可视化import seaborn as snsimport matplotlib.pyplot as pltsns.set()ax = sns.heatmap(out_shot, center=2000)plt.title('title')plt.savefig('heatmap.png')plt.show()原创 2020-04-08 17:06:28 · 1052 阅读 · 1 评论 -
可视化 [matplotlib]
import matplotlib.pyplot as plt画直方图 plt.hist()matplotlib.pyplot.hist( x, bins=10, range=None, normed=False, weights=None, cumulative=False, bottom=None, histtype=u'bar', align=u...原创 2020-04-06 17:53:00 · 100 阅读 · 0 评论 -
pytorch 笔记
两张量相乘点乘 (矩阵相乘)tensor1.mm(tensor2)m x n 矩阵 乘以 n x d 得到 m x d 矩阵data = [[1,2], [3,4], [5, 6]]tensor = torch.FloatTensor(data)tensorOut[31]: tensor([[ 1., 2.], [ 3., 4.], [ 5., ...原创 2020-04-06 17:39:56 · 125 阅读 · 0 评论