Question: Question 10: Relative Error Evaluation As a student who has recently taken CS 357, Paul is eager to put his knowledge learned in the class

 Question 10: Relative Error Evaluation As a student who has recentlytaken CS 357, Paul is eager to put his knowledge learned in

Question 10: Relative Error Evaluation As a student who has recently taken CS 357, Paul is eager to put his knowledge learned in the class to use in real-world applications. He notices the weather forcast in Champaign-Urbana area is not very accurate and is determined to make it better. After a summer of hard work, he has finished implementing his new software for predicting wind speed. Eager to test how well his software performs, he uses it to predict the wind speed for the next n days and then collects the actual wind data during these n days. He stores both his predicted data and the actual data in NumPy arrays. To understand how well Paul's software performs, write a program to compute the maximum relative error of his prediction across these n days. HINT: Consider using numpy.ndarray.max to compute the maximum value element in an array. The setup code gives the following variables: The setup code gives the following variables: n Name Type Description int The number of days predicted numpy.ndarray Array of length n representing the predicted wind speed for these n days actual numpy.ndarray Array of length n representing the actual wind speed for these n days Your code snippet should define the following variables: Name Type Description max_rel_error float The maximum relative error of Paul's prediction across these n days

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!