Skip to content

Instantly share code, notes, and snippets.

Jaemin Cho j-min

Block or report user

Report or block j-min

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
odashi /
Last active Jan 1, 2017
Training and generation processes for neural encoder-decoder machine translation.
import datetime
import sys
import math
import numpy as np
from argparse import ArgumentParser
from collections import defaultdict
from chainer import FunctionSet, Variable, functions, optimizers
wookayin /
Last active Mar 12, 2018
Reset tensorflow, in ipython notebook
# use the following snippet in your ipython notebook shell
import argparse
import tensorflow as tf = tf.python.platform.flags._FlagValues() = argparse.ArgumentParser()
mattbasta /
Created Jan 22, 2011
A module to "unparse" a Python AST tree.
# -*- coding: utf-8 -*-
Extension to ast that allow ast -> python code generation.
:copyright: Copyright 2008 by Armin Ronacher.
:license: BSD.
ckinsey /
Last active Aug 19, 2018 Builds the Markov Models from Slack
import json
import markovify
import re
import time
from slackclient import SlackClient
BOT_TOKEN = "insert bot token here"
volkancirik /
Last active Oct 9, 2018
Pytorch TreeRNN
TreeLSTM[1] implementation in Pytorch
Based on dynet benchmarks :
Other References:
lampts /
Last active Dec 16, 2018
how to convert/port gensim word2vec to tensorflow projector board.
# required tensorflow 0.12
# required gensim 0.13.3+ for new api model.wv.index2word or just use model.index2word
from gensim.models import Word2Vec
import tensorflow as tf
from tensorflow.contrib.tensorboard.plugins import projector
# loading your gensim
model = Word2Vec.load("YOUR-MODEL")
decentralion / labels_1024.tsv
Last active Apr 28, 2019
TensorBoard: TF Dev Summit Tutorial
View labels_1024.tsv
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
off99555 / Machine Learning
Last active Apr 29, 2019
Machine learning resources and related artificial intelligence concepts.
View Machine Learning
danijar /
Last active Apr 29, 2019
TensorFlow Sequence Classification
# Example for my blog post at:
import functools
import sets
import tensorflow as tf
def lazy_property(function):
attribute = '_' + function.__name__
spitis /
Created Feb 2, 2017
Batch normalized LSTM Cell for Tensorflow
"""adapted from 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'''
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
You can’t perform that action at this time.