摘要: https://www.cnblogs.com/sjjsxl/p/6844091.html https://zhuanlan.zhihu.com/p/25994179 1.思想 k近邻法输入为实例的特征向量,输出为实例的类别。算法思想是,给定训练数据集,对应输入空间的各个数据点,要判断一个新的数据点 阅读全文
posted @ 2020-06-03 13:33 lypbendlf 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 1.有label评价标准 https://zhuanlan.zhihu.com/p/53840697 一般分为:外部、内部、相对,这三种评价指标。 1.1 Purity: 正确聚类的样本数占总样本的比例: 非常直观且简单的计算法方法。 1.2 NMI (Normalized Mutual Infor 阅读全文
posted @ 2020-06-03 10:59 lypbendlf 阅读(1693) 评论(0) 推荐(0) 编辑
摘要: 1.pytorch自动求导机制 https://zhuanlan.zhihu.com/p/79801410 只能对浮点类型的tensor设置x.requires_grad_(True); import torch # Creating the graph x = torch.tensor(1.0, 阅读全文
posted @ 2020-06-03 10:18 lypbendlf 阅读(306) 评论(0) 推荐(0) 编辑