Skip to content

Autoregressive modelling for time-series used from Andrej Karpathy shakespeare data

Notifications You must be signed in to change notification settings

Amr-Abdellatif/Autoregressive-Models-for-Time-Series---Sequence-modelling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Lets break down our problem

The autoencoding approach has been very successful for images, signals, and even fully connected models with tabular data. But what if our data is a sequence problem? Especially if our data is in a language represented by discrete tokens, it’s hard to add meaningful noise to things like a letter or word. Instead, we can use an autoregressive model, which is an approach specifically designed for time-series problems.

You can use an autoregressive model for basically all the same applications for which you might use an autoencoding one. You can use the representation an autoregressive model learns as the input to another ML algorithm that doesn’t understand sequences


Capture

The first thing we need is our data. Andrej Karpathy has shared some text from Shakespeare online that we will download. There are about 100,000 characters in this text, so we store the data in a variable called shakespear_100k. We use this dataset to show the process of training an autoregressive model, as well as its generative capabilities and its all listed in the notebook in this repo


About

Autoregressive modelling for time-series used from Andrej Karpathy shakespeare data

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published