Skip to content

Instantly share code, notes, and snippets.

View LKH-1's full-sized avatar

LKH-1 LKH-1

View GitHub Profile
@LKH-1
LKH-1 / timeseries_cnn.py
Created May 22, 2018 11:39 — forked from jkleint/timeseries_cnn.py
Example of using Keras to implement a 1D convolutional neural network (CNN) for timeseries prediction.
#!/usr/bin/env python
"""
Example of using Keras to implement a 1D convolutional neural network (CNN) for timeseries prediction.
"""
from __future__ import print_function, division
import numpy as np
from keras.layers import Convolution1D, Dense, MaxPooling1D, Flatten
from keras.models import Sequential
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from yahoo_finance import Share
import matplotlib.pyplot as plt
import numpy as np
import tensorflow as tf
import random
%matplotlib inline
class DecisionPolicy:
def select_action(self, current_state, step):
pass
@LKH-1
LKH-1 / RNN_hunkim's_tutorial_BasicRNNCell.ipynb
Created January 22, 2017 02:09 — forked from j-min/RNN_hunkim's_tutorial_BasicRNNCell.ipynb
TensorFlow 0.9 implementation of BasicRNNCell based on hunkim's tutorial
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@LKH-1
LKH-1 / 2016-07-18-rnn-lstm.md
Created December 28, 2016 03:13 — forked from MinjeJeon/2016-07-18-rnn-lstm.md
RNN, LSTM 관련글 링크