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

Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter19: Probabilistic Dynamic Programming
Section19.4: Further Examples Of Probabilistic Dynamic Programming Formulations
Problem 7P
icon
Related questions
Question
100%

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
Developing computer interface
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
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage