
算法
文章平均质量分 62
不乏希望
啥也不会
的Hello World
展开
-
【机器学习笔记】Logistics Regression中损失函数求偏导的具体步骤
根据吴恩达老师机器学习课程中在 Logistics Regression 中定义的损失函数: J(θ)=−1m∑i=1m[y(i)log(hθ(x(i)))+(1−y(i))log(1−hθ(x(i)))] J(\theta)=-\frac{1}{m} \sum_{i=1}^{m}\left[y^{(i)} \log \left(h_{\theta}\left(x^{(i)}\right)\right)+\left(1-y^{(i)}\right) \log \left(1-h_{\theta}\le.原创 2021-09-12 23:30:19 · 1953 阅读 · 2 评论 -
两个大整数的加、减、乘、除操作(C++实现)
加法操作 vector<int> add(vector<int> &A, vector<int>&B){ vector<int> C; int t=0; for(int i=0;i<A.size()||i<B.size();i++){ if(i<A.size()) t += A[i]; if(i<B.size()) t += B[i]; C.pus.原创 2021-03-09 23:13:05 · 3623 阅读 · 0 评论