├── .gitignore ├── README.md ├── archive ├── gradient_check │ ├── main.py │ └── utils.py ├── miniresnet_mnist.py ├── plot.py ├── postprediction.json ├── preprediction.json ├── reuse_test.py ├── tf_dense.py ├── tf_fetch_order.py ├── tf_mean.py ├── train_inputs.json ├── train_labels.json └── vary_predictions.json ├── data └── omniglot_resized │ └── resize_images.py ├── data_generator.py ├── images ├── key_value.png ├── original_network.png ├── prediction.png ├── shifted_network.png ├── similarity.png ├── sinusoid.png ├── sinusoid_-3.0.png ├── sinusoid_0.0.png ├── sinusoid_3.0.png ├── sinusoid_all.png └── weighted_update.png ├── main.py ├── models ├── __init__.py ├── adaCNN.py ├── adaFFN.py ├── adaResNet.py └── utils.py ├── pretrained_sinusoid ├── checkpoint ├── ckpt-20000.data-00000-of-00001 ├── ckpt-20000.index └── ckpt-20000.meta └── utils.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/README.md -------------------------------------------------------------------------------- /archive/gradient_check/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/archive/gradient_check/main.py -------------------------------------------------------------------------------- /archive/gradient_check/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/archive/gradient_check/utils.py -------------------------------------------------------------------------------- /archive/miniresnet_mnist.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/archive/miniresnet_mnist.py -------------------------------------------------------------------------------- /archive/plot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/archive/plot.py -------------------------------------------------------------------------------- /archive/postprediction.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/archive/postprediction.json -------------------------------------------------------------------------------- /archive/preprediction.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/archive/preprediction.json -------------------------------------------------------------------------------- /archive/reuse_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/archive/reuse_test.py -------------------------------------------------------------------------------- /archive/tf_dense.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/archive/tf_dense.py -------------------------------------------------------------------------------- /archive/tf_fetch_order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/archive/tf_fetch_order.py -------------------------------------------------------------------------------- /archive/tf_mean.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/archive/tf_mean.py -------------------------------------------------------------------------------- /archive/train_inputs.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/archive/train_inputs.json -------------------------------------------------------------------------------- /archive/train_labels.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/archive/train_labels.json -------------------------------------------------------------------------------- /archive/vary_predictions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/archive/vary_predictions.json -------------------------------------------------------------------------------- /data/omniglot_resized/resize_images.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/data/omniglot_resized/resize_images.py -------------------------------------------------------------------------------- /data_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/data_generator.py -------------------------------------------------------------------------------- /images/key_value.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/images/key_value.png -------------------------------------------------------------------------------- /images/original_network.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/images/original_network.png -------------------------------------------------------------------------------- /images/prediction.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/images/prediction.png -------------------------------------------------------------------------------- /images/shifted_network.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/images/shifted_network.png -------------------------------------------------------------------------------- /images/similarity.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/images/similarity.png -------------------------------------------------------------------------------- /images/sinusoid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/images/sinusoid.png -------------------------------------------------------------------------------- /images/sinusoid_-3.0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/images/sinusoid_-3.0.png -------------------------------------------------------------------------------- /images/sinusoid_0.0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/images/sinusoid_0.0.png -------------------------------------------------------------------------------- /images/sinusoid_3.0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/images/sinusoid_3.0.png -------------------------------------------------------------------------------- /images/sinusoid_all.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/images/sinusoid_all.png -------------------------------------------------------------------------------- /images/weighted_update.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/images/weighted_update.png -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/main.py -------------------------------------------------------------------------------- /models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /models/adaCNN.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/models/adaCNN.py -------------------------------------------------------------------------------- /models/adaFFN.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/models/adaFFN.py -------------------------------------------------------------------------------- /models/adaResNet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/models/adaResNet.py -------------------------------------------------------------------------------- /models/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/models/utils.py -------------------------------------------------------------------------------- /pretrained_sinusoid/checkpoint: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/pretrained_sinusoid/checkpoint -------------------------------------------------------------------------------- /pretrained_sinusoid/ckpt-20000.data-00000-of-00001: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/pretrained_sinusoid/ckpt-20000.data-00000-of-00001 -------------------------------------------------------------------------------- /pretrained_sinusoid/ckpt-20000.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/pretrained_sinusoid/ckpt-20000.index -------------------------------------------------------------------------------- /pretrained_sinusoid/ckpt-20000.meta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/pretrained_sinusoid/ckpt-20000.meta -------------------------------------------------------------------------------- /utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greentfrapp/cond-shift-neurons/HEAD/utils.py --------------------------------------------------------------------------------