Skip to content

Instantly share code, notes, and snippets.

View kaeflint's full-sized avatar

Isaac Essel kaeflint

View GitHub Profile
@kaeflint
kaeflint / attention_decoder.py
Created July 9, 2018 21:02
Attention Decoder (TF & Keras)
import tensorflow as tf
from keras import backend as K
from keras import regularizers, constraints, initializers, activations
from keras.layers.recurrent import Recurrent, _time_distributed_dense
from keras.engine import InputSpec
tfPrint = lambda d, T: tf.Print(input_=T, data=[T, tf.shape(T)], message=d)
class AttentionDecoder(Recurrent):
@kaeflint
kaeflint / live_loss_plot_keras.ipynb
Created February 10, 2018 00:52 — forked from stared/live_loss_plot_keras.ipynb
Live loss plot for training models in Keras
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.