梯度下降學習

1、微分實現的代碼 主要是使用微分的定義來實現偏微分的功能, 代碼如下: %% 參數爲微分的步長x,要微分的點的座標 function Out = My_diffun(x,y,dilta) df_div_dx = (My_dif(x+dilta,y)- My_dif(x,y))/dilta; df_div_dy = (My_dif(x,y+dilta)-My_dif(x,y))/dilta; Ou
相關文章
相關標籤/搜索