Загрузка...

Practice Questions On Gradient Descent | MATLAB

This lesson is used primarily to boost the concept of Gradient Descent using a question-answer approach. It will help you in applying the conceptual knowledge and get a strong hold over them by solving these questions.

Code:

clc
clear all
close all
format long
x=-60;%Initial Random Guess
for h=1:50000%Total Number of Iterations
ms=2*(x-5);%Get the gradient value at the point
x=x-0.001*ms;%Update
end
disp(x);
fg=1+(x-5)^2;
disp(fg);

Learn Machine Learning using MATLAB:
https://www.youtube.com/watch?v=1Ay0bV-6qNM&list=PLjfRmoYoxpNoaZmR2OTVrh-72YzLZBlJ2&index=2&t=5s

#MachineLearning #MATLAB

Видео Practice Questions On Gradient Descent | MATLAB канала Knowledge Amplifier
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки