2022年6月27日
摘要: https://zhuanlan.zhihu.com/p/56185913 正则化可以产生稀疏权值矩阵,即产生一个稀疏模型,用于特征筛选; 正则化可以防止过拟合,提升模型的泛化能力。 假设待优化函数为 ,其中 ,那么优化问题可以转化为求 正则化,即对参数 加上 范数约束 正则化,即对参数 加上 范数 阅读全文
posted @ 2022-06-27 13:44 Real_Yuan 阅读(90) 评论(0) 推荐(0)
摘要: 剪枝剪的好,就像中彩票。 Ref' https://www.zhihu.com/question/347847220/answer/890794195 [6] Frankle, Jonathan, and Michael Carbin. "The lottery ticket hypothesis: 阅读全文
posted @ 2022-06-27 13:31 Real_Yuan 阅读(57) 评论(0) 推荐(0)
摘要: 什么时候用余弦距离什么时候用欧式距离呢? Ref: https://zhuanlan.zhihu.com/p/84643138 总体来说,欧氏距离体现数值上的绝对差异,而余弦距离体现方向上的相对差异。 1)例如,统计两部剧的用户观看行为,用户A的观看向量为(0,1),用户B为(1,0);此时二者的余 阅读全文
posted @ 2022-06-27 13:27 Real_Yuan 阅读(74) 评论(0) 推荐(0)
摘要: 2022-06-27 1. cell2mat Convert the contents of a cell array into a single matrix. C = {[1] [2 3 4]; [5; 9] [6 7 8; 10 11 12]} M = cell2mat(C); 2. num2 阅读全文
posted @ 2022-06-27 13:12 Real_Yuan 阅读(74) 评论(0) 推荐(0)