11 2021 档案
摘要:之前这篇博文使用的是梯度下降法的暴力法,计算了最优系数和绘制了决策边界:https://blog.csdn.net/qq_41938259/article/details/104163797 这次使用了该进的随机梯度下降法,大大优化了复杂度,提高了运行速度 import os import pand
阅读全文
摘要:由于可处理的数据范围极小,而且算法比较暴力。所以仅供参考没有实际意义。 分解大质数还是得靠python。 、 #include<iostream> using namespace std; struct factor { int x, cnt; }fac[10]; const int maxn =
阅读全文