Deep Learning with PyTorch: Optimizers

This is based on code from the following book The follow blog post walks through what PyTorch’s Optimzers are.e Link to Jupyter Notebook that this blog post was made from Pytorch comes with a module of optimizers. We can replace our vanilla gradient descent with many different ones without modifying a lot of code. %matplotlib inline import numpy as np import pandas as pd import seaborn as sns from matplotlib import pyplot import torch torch....

October 29, 2020 · 49 min · Greg Hilston

Deep Learning with PyTorch: Autograd

This is based on code from the following book The follow blog post walks through what PyTorch’s Autograd is. Link to Jupyter Notebook that this blog post was made from %matplotlib inline import numpy as np import torch torch.set_printoptions(edgeitems=2) Taking our input from the previous notebook and applying our scaling t_c = torch.tensor([0.5, 14.0, 15.0, 28.0, 11.0, 8.0, 3.0, -4.0, 6.0, 13.0, 21.0]) t_u = torch.tensor([35.7, 55.9, 58.2, 81.9, 56.3, 48....

October 28, 2020 · 3 min · Greg Hilston

Deep Learning with PyTorch: Parameter Estimation

This is based on code from the following book The follow blog post walks through what Parameter Estimation is. The goal here is to explain the theory. I have rewritten this notebook from the above book’s PyTorch Tensor implementation to be just in pure Numpy. Link to Jupyter Notebook that this blog post was made from Download FILE The story here is we’ll learn about Parameter Estimation by pretending we have two thermometers on our desk....

October 27, 2020 · 8 min · Greg Hilston