Skip to content

Instantly share code, notes, and snippets.

Paul Gradie, PhD paulgradie

Block or report user

Report or block paulgradie

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@paulgradie
paulgradie / bnlstm.py
Created Jul 6, 2017 — forked from spitis/bnlstm.py
Batch normalized LSTM Cell for Tensorflow
View bnlstm.py
"""adapted from https://github.com/OlavHN/bnlstm to store separate population statistics per state"""
import tensorflow as tf, numpy as np
RNNCell = tf.nn.rnn_cell.RNNCell
class BNLSTMCell(RNNCell):
'''Batch normalized LSTM as described in arxiv.org/abs/1603.09025'''
def __init__(self, num_units, is_training_tensor, max_bn_steps, initial_scale=0.1, activation=tf.tanh, decay=0.95):
"""
* max bn steps is the maximum number of steps for which to store separate population stats
"""
View Pandas.Sum-which-axis-is-which.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@paulgradie
paulgradie / reference_formatter_50.py
Created Aug 18, 2014
Outdated Version: For making all your reference chromosome files evenly formatted to lines of 50bp PRIOR to concatenation.
View reference_formatter_50.py
__author__ = 'Paul G'
from sys import argv
import os
import re
script = argv
print """\nHi USER (lol Tron joke!) This simple script is meant to help you format your reference file.\n
It is really only meant to handle one chromosome file at a time,a future update will allow for entire reference fix.
You can’t perform that action at this time.