![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
机器学习
文章平均质量分 79
培培哥
这个作者很懒,什么都没留下…
展开
-
python层次聚类——基于sci库的代码实现和解释
一、代码from scipy.cluster.hierarchy import linkage, fclusterimport numpy as npfrom matplotlib import pyplot as pltdata = np.random.rand(100, 2)# 进行层次聚类(linkage返回聚类结果矩阵z)z = linkage(data, method ...原创 2019-11-28 19:12:58 · 1982 阅读 · 0 评论 -
Pytorch:搭建RNN方法和过程分析
1、pytorch创建RNN模型和训练模型的代码import torchfrom torch import nnfrom torch.autograd import Variable#定义RNN模型class RNN(nn.Module): def __init__(self): super(RNN, self).__init__() se...原创 2018-12-22 22:12:22 · 6095 阅读 · 2 评论