diff --git "a/index.html" "b/index.html" --- "a/index.html" +++ "b/index.html" @@ -13138,7 +13138,7 @@ div#notebook {
# Installing the dependencies within the notebook to make it easier to run on colab
@@ -13175,7 +13175,7 @@ div#notebook {
from fastai.basics import torch, plt
@@ -13200,7 +13200,7 @@ div#notebook {
# Function with quadratic expression ax^2 + bx + c
@@ -13243,7 +13243,7 @@ div#notebook {
# Add both multiplicative and additive noise to input x
@@ -13290,7 +13290,7 @@ div#notebook {
from ipywidgets import interact
@@ -13310,8 +13310,13 @@ div#notebook {
-
@@ -13328,7 +13333,7 @@ div#notebook {
-In [6]:
+In [16]:
def mean_absolute_error(preds, acts): return (torch.abs(preds-acts)).mean()
@@ -13373,7 +13378,7 @@ Prediction: 4.0, Actual: 4.2, Absolute Difference: 0.200
-In [7]:
+In [17]:
@interact(a=1.5, b=1.5, c=1.5)
@@ -13392,8 +13397,13 @@ Prediction: 4.0, Actual: 4.2, Absolute Difference: 0.200
-
@@ -13419,7 +13429,7 @@ Prediction: 4.0, Actual: 4.2, Absolute Difference: 0.200
-In [8]:
+In [18]:
#########################################
@@ -13553,7 +13563,7 @@ If the slope is negative we want to move forward (or downhill).
-In [9]:
+In [19]:
@interact(a=1.5, b=1.5, c=1.5)
@@ -13583,8 +13593,13 @@ If the slope is negative we want to move forward (or downhill).
-
@@ -13592,7 +13607,7 @@ If the slope is negative we want to move forward (or downhill).
-In [10]:
+In [20]:
from fastai.metrics import mae
@@ -13694,6 +13709,6 @@ Best abc parameters: tensor([3.1053, 1.6716, 1.0000])