Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

""" 

@file 

@brief Metrics about regressions. 

""" 

from sklearn.metrics import mean_squared_error 

 

 

def mse(exp, val): 

""" 

Computes `mean_squared_error <http://scikit-learn.org/stable/modules/generated/sklearn.metrics.mean_squared_error.html>`_. 

""" 

return mean_squared_error(exp, val)