Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexisylchan
alexisylchan / DenseWordVectors.ipynb
Last active October 17, 2016 12:51
CS224d dense word vectors example
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
'''
Modified from keras/examples/lstm_benchmark.py in attempt to learn how to build Convolutional LSTM in Keras
The only difference between ConvLSTM below and LSTM in keras/layers/recurrent.py is I have replaced
K.dot with K.conv2d.
This is based on my understanding after reading the following:
- http://deeplearning.net/tutorial/lstm.html
- http://colah.github.io/posts/2015-08-Understanding-LSTMs/
- Convolutional LSTM Network: A Machine Learning Approach for Precipitation Nowcasting: https://arxiv.org/abs/1506.04214
Running test_convlstm.py will result in the following error:
@alexisylchan
alexisylchan / testhive.html
Last active October 17, 2016 15:43
hive_plot
<!DOCTYPE html>
<meta charset="utf-8">
<!-- Full-credit: -->
<style>
.link {
fill: none;
stroke-width: 1.5px;
}
<html>
<head>
<script type="text/javascript" src="angular.js"></script>
<script type="text/javascript">
function PlaylistCtrl($scope) {
$scope.currentSong = 'Wish you were here';
$scope.currentPlaylistName = '';
$scope.playlist = [];
$scope.playlistMap = {};