English subtitles

← Calculating R^2 - Intro to Data Science

Get Embed Code
4 Languages

Showing Revision 2 created 05/24/2016 by Udacity Robot.

  1. Let's make sure that you're comfortable with the
  2. coefficient of determination and computing it. Write a
  3. function that, given two input numpy arrays, data,
  4. and predictions, that returns the coefficient of determination, r
  5. squared, for the model that produced the predictions.
  6. Numpy has a couple of functions, numpy.mean and numpy.sum,
  7. that you might find useful here, but you
  8. don't have to use them. Your code goes here.