Path: blob/master/5_loss/loss_function_exercise_solution.ipynb
1141 views
Kernel: Python 3
Loss function exercise: Implement Mean Squared Error Function In Python
You need to implement mean squared error function first without using numpy and then using numpy
Solution 1: Without using numpy
In [1]:
In [30]:
In [31]:
Out[31]:
Total Squared Error: 1.83
Mean Squared Error: 0.366
0.366
Solution 2: By using numpy
In [32]:
Out[32]:
0.366