随笔分类 -  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)