All Projects → LiamMaclean216 → Pytorch Transfomer

LiamMaclean216 / Pytorch Transfomer

My implementation of the transformer architecture from the Attention is All you need paper applied to time series.

Projects that are alternatives of or similar to Pytorch Transfomer

Avgn
A generative network for animal vocalizations. For dimensionality reduction, sequencing, clustering, corpus-building, and generating novel 'stimulus spaces'. All with notebook examples using freely available datasets.
Stars: ✭ 50 (-1.96%)
Mutual labels:  jupyter-notebook
Numerical Linear Algebra
Free online textbook of Jupyter notebooks for fast.ai Computational Linear Algebra course
Stars: ✭ 8,263 (+16101.96%)
Mutual labels:  jupyter-notebook
Siraj chatbot challenge
Entry for machine learning
Stars: ✭ 50 (-1.96%)
Mutual labels:  jupyter-notebook
Estid Sig
Verify Estonian e-id signatures on Ethereum
Stars: ✭ 50 (-1.96%)
Mutual labels:  jupyter-notebook
Anomaly detection
This is a times series anomaly detection algorithm, implemented in Python, for catching multiple anomalies. It uses a moving average with an extreme student deviate (ESD) test to detect anomalous points.
Stars: ✭ 50 (-1.96%)
Mutual labels:  jupyter-notebook
Juliatutorial
Julia Tutorial for Finance and Econometrics Students
Stars: ✭ 50 (-1.96%)
Mutual labels:  jupyter-notebook
Meetup
밋업 자료
Stars: ✭ 49 (-3.92%)
Mutual labels:  jupyter-notebook
Bigartm Book
Topic modeling with BigARTM: an interactive book
Stars: ✭ 50 (-1.96%)
Mutual labels:  jupyter-notebook
Livelossplot
Live training loss plot in Jupyter Notebook for Keras, PyTorch and others
Stars: ✭ 1,050 (+1958.82%)
Mutual labels:  jupyter-notebook
Sketchback
Keras implementation of sketch inversion using deep convolution neural networks (synthesising photo-realistic images from pencil sketches)
Stars: ✭ 50 (-1.96%)
Mutual labels:  jupyter-notebook
O Que 15 Mil Tweets Revelam Sobre Seu Candidato
Código e dados para a matéria "O que 15 mil tweets revelam sobre seu candidato" || Code and data for the story "What 15k tweets show about your candidate"
Stars: ✭ 50 (-1.96%)
Mutual labels:  jupyter-notebook
Matminer examples
A repo of examples for the matminer (https://github.com/hackingmaterials/matminer) code
Stars: ✭ 50 (-1.96%)
Mutual labels:  jupyter-notebook
How to generate images with tensorflow live
Stars: ✭ 50 (-1.96%)
Mutual labels:  jupyter-notebook
Machine learning economics
Machine Learning for Economics
Stars: ✭ 50 (-1.96%)
Mutual labels:  jupyter-notebook
Doubletdetection
Doublet detection in single-cell RNA-seq data.
Stars: ✭ 50 (-1.96%)
Mutual labels:  jupyter-notebook
K Anonymity
Anonymization methods for network security.
Stars: ✭ 50 (-1.96%)
Mutual labels:  jupyter-notebook
Community
Kubernetes community content
Stars: ✭ 9,133 (+17807.84%)
Mutual labels:  jupyter-notebook
Documents
Slides produced by Engineers and Data Scientists of Blue Yonder
Stars: ✭ 50 (-1.96%)
Mutual labels:  jupyter-notebook
Sgn 41007
Supplementary materials for course "Pattern Recognition and Machine Learning" at
Stars: ✭ 50 (-1.96%)
Mutual labels:  jupyter-notebook
Scona
Code to analyse structural covariance brain networks using python.
Stars: ✭ 50 (-1.96%)
Mutual labels:  jupyter-notebook

This is an implementation of the Transformer algorithm on time series data in pytorch. In this case the modelling of the sigmoid function is used as a toy problem

Usage:
First all the necessary imports as well as matplotlib for visualisation.

Next we need to define some hyperparameters which will vary depending on the task.

We initilisise the Network and an optimizier, in this case Adam, as well as an empty list to track losses for visualisation.

Using matplotlib in jupyter notebook we can graph losses in real time, first lets initialise a figure.

We can now being training

You should see a live plot that looks similar to this tracking the ouput error

Now that the network is trained, lets give it the first few values of the sigmoid function and see how it approximates the rest.
We create another figure to visualise this.

If all went well, the output should look something like this :

Note that the network uses past values instead of the x axis for its predictions , so it makes sense that the output is offset. However it did succesfully capture the shape.

Resources:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].