会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
AI-Era
Only those who have the patience to do simple things perfectly ever acquire the skill to do difficult things easily.
博客园
首页
新随笔
联系
管理
订阅
随笔分类 -
Matlab
梯度下降、随机梯度下降、方差减小的梯度下降(matlab实现)
摘要:梯度下降代码:function [ theta, J_history ] = GradinentDecent( X, y, theta, alpha, num_iter )m = length(y);J_history = zeros(20, 1);i = 0;temp = 0;for iter = 1:num_iter temp = temp +1; theta = theta ...
阅读全文
posted @
2018-12-25 14:38
Ruyi.Luo
阅读(5729)
评论(1)
推荐(0)
公告