All you need to know about the state of the art Transformer Neural Network Architecture, adapted to Time Series Tasks. Keras code included.

Table of Contents

  • Introduction
  • Preprocessing
  • Learnable Time Representation (Time 2 Vec)
  • Architecture
  • Bag Of Tricks (things to consider when training Transformers)


Attention Is All You Need they said. Is it a more robust convolution? Is it just a hack to squeeze more learning capacity out of fewer parameters? Is it supposed to be…

An organised codebase enables you to implement changes faster and make less mistakes, ultimately leading to higher code and model quality. Read more to learn how to structure your ML projects with Tensorflow Extended (TFX), the easy and straightforward way.

Project Structure: Requirements

  • Enable experimentation with multiple pipelines
  • Support both alocal execution mode and a deployment execution mode. This ensures the creation of 2 separate running configurations, with the first being used for local development and end-to-end testing and the second one used for running in the cloud.
  • Reuse code across pipeline variants…

Quit depending on positional indices and input value ordering. Start relying on named inputs and outputs. Avoiding data wiring errors

Named inputs and outputs are essentially dictionaries with string keys and tensor values.


  1. Defence Against Feature Reordering
  2. Self — Sufficient Model Serving Signatures and Metadata
  3. Renaming and Absent Feature Protection

Most machine learning pipelines read data from a structured source ( database, CSV files/ Pandas Dataframes , TF Records), perform…

Namely: Hyperparameter Search, Convolution Variants, Network-in-Network, Weight Sharing, Pruning, Quantization

The following is a very, very brief and non-technical summary of a chapter in the author’s dissertation.


A very deep neural network that is designed to solve hard problems might take a few seconds to run on modern computers with hardware accelerators for linear algebra operations. Similarly, smaller neural networks…

Safely store and handle incoming heterogeneous data in a functional, type-safe, rusty way.

Problem Statement

You’ve got to make a web API that accepts JSON objects (or anything that serde supports, actually). You need some code — first way of declaring the structure of those incoming entities, so that they can be processed accordingly and deserialized into easy-to-use structs and traits. Consider the following example:

Extracting labels, windowing multivariate series, multiple TF Record file shards and other useful tips for dealing with sequential data

The API is a very efficient pipeline builder. Time Series Tasks can be a bit tricky to implement properly. In this article, we are going to dive deep into common tasks:

  • Windowing Labelled Data
  • Windowing Unlabelled Data by Looking Ahead
  • Sharding TF Record Files Tips for Efficiency and No…

A creative PoseNet application that runs on your browser and tries to predict if you’re jumping, crouching, or staying still

You all know what this game is about. This is the best service-offline-sorry page in the world. People have made simple bots that time the dino’s jump to beat the game to reinforcement learning agents with CNN state encoders.

It’s a game and we’re supposed to have fun. Today, I’ll…

A quick api overview and a self-contained example of fluent-tfx

If this production e2e ML pipelines thing seems new to you, please read the TFX guide first.

On the other hand, if you’ve used TFX before, or planning to deploy a machine learning model, you’re in the right place.

But Tensorflow Extended is already fully capable to construct e2e pipelines by itself, why bother to use another API ?

  • Verbose and long code definitions. Actual preprocessing and training code can…

Theodoros Ntakouris

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store