makemore: part 5¶ In [1]: import torch import torch.nn.functional as F import matplotlib.pyplot as plt # for making figures %matplotlib inline In [2]: # read in all the words words = open('names.txt', 'r').read().splitlines() print(len(words)) print(max(len(w) for w in words)) print(words[:8]) 32033 15 ['emma', 'olivia', 'ava', 'isabella', 'sophia', 'charlotte', 'mia', 'amelia'] In [3]: # build the vocabulary of characters […]
Pytorch Blog Posts
Training Tesla Stock
Credit to Rodolfo Saldanha’s Stock Price Prediction with PyTorch. I just changed this from Amazon to Tesla. In [2]: # This Python 3 environment comes with many helpful analytics libraries installed # It is defined by the kaggle/python Docker image: https://github.com/kaggle/docker-python # For example, here’s several helpful packages to load import numpy as np # linear […]
Notes for – Building makemore Part 3: Activations & Gradients, BatchNorm
Building makemore Part 3 Jupyter Notebook makemore: part 3¶ Recurring Neural Networks RNNs are not as easily optimizable with first order gradient techniques we have available to us and the key to understanding why they are not optimizable easily is to understand the activations and their gradients and how they behave during training. In [2]: import […]
Notes for – Building makemore Part 2: MLP
Attempting to scale normalized probability counts grows exponentially You can use Multi Layer Perceptrons (MLPs) as a solution to maximize the log-likelihood of the training data. MLPs let you make predictions by embedding words close togehter in a space such that knowledge transfer of interchangability can occur with good confidence. With a vocabulary of 17000 […]
Notes for — The spelled-out intro to language modeling: building makemore
Derived from: https://github.com/karpathy/nn-zero-to-hero/blob/master/lectures/makemore/makemore_part1_bigrams.ipynb Makemore Purpose: to make more of examples you give it. Ie: names training makemore on names will make unique sounding names this dataset will be used to train a character level language model modelling sequence of characters and able to predict next character in a sequence makemore implements a services of language […]
Machine Learning Ideas
Create a neural net that weighs price difference % $TSLA for the past 1, 2, 3, 4, 5, 10, 15, 30, 60, 90 and 180 days. Starting with a binomial, you can create a data set that looks at the % change between yesterday and today. Just like makemore will make name predictions, the predictions […]