Question: a ) First , load the data and pick out every other data point in the x and y directions. I.e . , you should

a)First,load the data and pick out every other data point in the x and y directions. I.e.,you should have data points [0,0],[0,2],[0,4],...,[2,0],[2,2],[2,4],...You can look atthe lectrure notes on Gaussian Process Regresison for an example how to do this. Youwill use this data set to make the interpolation, and the other data points for comparison.b)First,do a 2D linear interpolation on the reduced (even)data points. Use the functionscipy.interpolate.RegularGridInterpolator().Then reconstruct a new version of the entiredata set (all points)using this interpolation. Make a plot of row 300for both the origionaldata and the interpolated data. On average, how far off is the interpolated data? Do thesame thing for row 301.Why is the data in this row farther off?c)Repeat part b)using cubic interpoalation. You can still usescipy.interpolate.RegularGridInterpolator()with the option method='cubic'.d)Now repeate part b)using gaussian proces regression. Be sure to include the errors inyour plot using the sigma returned by the GPR and the fill_between()function.How doesthe accuracy compare to cubic interpolation? How does the actual error compare to thesigma from the GPR?Note: For GPR to work, you'll probably need to use a smaller number of data points. Forexample, you may need to use every 6th or 10th point, rather than every-other point. Oryou may need to use every-other row between 250and 350.Or you might need to justrandomly pick 10,000(or less)data points out of the 500,000or so you start with -thisshould work find for GPR.I'm not sure what will work or will work best, but give it a try.e)Finally,repeate part d),but include an error on each point of 0.005,the rounding erroron the data. Compare the sigma returned by the GPR and the difference between the real and interpolated values in parts d) and e).
What is wrong with my code?
a ) First , load the data and pick out every

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 Programming Questions!