do in any programming language.. Characterize these variables:o m = 0o b = 0o L = 0.001 (this is the learning rate; it assists the calculation with gaining from the past emphasess and utilize those learnings and adjust to the following emphasis.) In the for circle, the client is mentioned to enter the x and y values for that emphasis. (Answer: There will be five cycles of the for circle). Utilizing the x worth, we input we would create the yi predict:o y_pred = x * m + b The program can now decide the rough m and b values for those directions. o m_approx = x * (y_pred - y) o b_approx = y_pred - y Total m_approx for each of the five cycles Aggregate b_approx for each of the five emphasess Then, utilize the aggregate to compute the normal of m_approx Likewise, utilize the aggregate to work out the normal of b_approx We can refresh the m and b values which were recently set to 0:o m = m - L * m_avgo b = b - L * b_avg Print the refreshed m and b values. (Kindly take a screen capture of this result and submit). Note: the condition for the straight line (with the new upsides of m and b) can be utilized to anticipate Y for any worth of x. Since we have the anticipated m and b esteem, we would utilize them to foresee Y for a given scope of x. Utilizing a for circle, decide the assessed worth of Y for the accompanying upsides of x:1,3,5,7,9 Decide for each worth of x:o y_est = x * m + b Finally, print each assessed y an incentive for each given x worth. (If it's not too much trouble, take a screen capture of this result and submit). Note:Use the accompanying upsides of (x,y):x = 2, 4, 6, 8, 10 y = 90, 98, 103, 110, 117 As a keep an eye on your response: o Predicted incentive for m is: 0.648 o Predicted incentive for b is: 0.1036

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

do in any programming language..

Characterize these variables:o m = 0o b = 0o L = 0.001 (this is the learning rate; it assists the calculation with gaining from the past emphasess and utilize those learnings and adjust to the following emphasis.)

In the for circle, the client is mentioned to enter the x and y values for that emphasis. (Answer: There will be five cycles of the for circle).

Utilizing the x worth, we input we would create the yi predict:o y_pred = x * m + b

The program can now decide the rough m and b values for those directions.

o m_approx = x * (y_pred - y)

o b_approx = y_pred - y

Total m_approx for each of the five cycles

Aggregate b_approx for each of the five emphasess

Then, utilize the aggregate to compute the normal of m_approx

Likewise, utilize the aggregate to work out the normal of b_approx

We can refresh the m and b values which were recently set to 0:o m = m - L * m_avgo b = b - L * b_avg

Print the refreshed m and b values. (Kindly take a screen capture of this result and submit).

Note: the condition for the straight line (with the new upsides of m and b) can be utilized to anticipate Y for any worth of x.

Since we have the anticipated m and b esteem, we would utilize them to foresee Y for a given scope of x.

Utilizing a for circle, decide the assessed worth of Y for the accompanying upsides of x:1,3,5,7,9

Decide for each worth of x:o y_est = x * m + b

Finally, print each assessed y an incentive for each given x worth. (If it's not too much trouble, take a screen capture of this result and submit).

Note:Use the accompanying upsides of (x,y):x = 2, 4, 6, 8, 10 y = 90, 98, 103, 110, 117

As a keep an eye on your response: o Predicted incentive for m is: 0.648 o Predicted incentive for b is: 0.1036

Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Top down approach design
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education