Skip to content

Instantly share code, notes, and snippets.

View act65's full-sized avatar

Alex act65

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@act65
act65 / hash.py
Last active February 19, 2017 01:40
Random projection -> binary hashing
import tensorflow as tf
from tensorflow.contrib.tensorboard.plugins import projector
from tensorflow.examples.tutorials.mnist import input_data
from sklearn.utils import shuffle
import numpy as np
import os
tf.app.flags.DEFINE_string('logdir', '/tmp/test', 'location for saved embeedings')
tf.app.flags.DEFINE_string('datadir', '/tmp/mnist', 'location for data')
tf.app.flags.DEFINE_integer('batchsize', 500, 'batch size.')
@act65
act65 / gating.md
Last active February 12, 2017 01:33
Exploring gating

Gating is ??? a discrete, sparse choice of ... Limiting of information flow!? Why is it important? It can provide differentiable sparsity? Sparsity is the real goal?

Gating allows us to choose (at run time) which computations to apply. This means we can save ... (somewhat like attention).

Specifically I am interested in applying this to gating/heirarchical/... for image processing.

@act65
act65 / DeepFool.ipynb
Last active August 31, 2016 03:47
Adversarial examples.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.