• Stars
    star
    120
  • Rank 294,358 (Top 6 %)
  • Language
    Python
  • License
    MIT License
  • Created over 6 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Stacked denoising convolutional autoencoder written in Pytorch for some experiments.

stacked-autoencoder-pytorch

Stacked denoising convolutional autoencoder written in Pytorch for some experiments.

This model performs unsupervised reconstruction of the input using a setup similar to Hinton in https://www.cs.toronto.edu/~hinton/science.pdf. Instead of training layers one at a time, I allow them to train at the same time. Each is trained locally and no backpropagation is used. The autoencoder is denoising as in http://machinelearning.org/archive/icml2008/papers/592.pdf and convolutional. ReLU activation function is used.

The quality of the feature vector is tested with a linear classifier reinitialized every 10 epochs. This is a toy model and you shouldn't expect good performance. You can try adding more layers and play around with adding more noise or regularization if better accuracy is desired.

Setup:

  • Python 3
  • Pytorch 0.3.0 with torchvision

Run "python run.py" to start training.

Observations:

  • Although the loss doesn't propagate through layers the overall quality of the reconstruction improves anyways.
  • When using ReLU, the sparsity of the feature vector at the last layer increases from 50% at the start to 80%+ as you continue training even though sparsity isn't enforced.
  • Augmenting with rotation slows down training and decreases the quality of the feature vector.

More Repositories

1

checkered-cnn

A new technique to increase receptive field in convolutional neural networks without losing so much information.
Python
30
star
2

Kaggle-Passenger-Screening-Challenge-Solution

10th place solution to the $1,500,000 Kaggle Passenger Screening Challenge sponsored by the Department of Homeland Security.
Python
23
star
3

hebbian-masks

An experiment with some brain-inspired ideas
Python
14
star
4

Denoise-CNN-for-realtime-path-tracing-attempt

An attempt at a convolutional neural network for denoising incomplete path tracing renders using Feature Pyramid Networks of Lin et al. (https://arxiv.org/pdf/1612.03144.pdf)
Python
9
star
5

python-interceptor-proxy

A HTTP/HTTPS proxy for man-in-the-middle attacks in Python.
Python
4
star
6

encrypted-neural-networks

Keeping the inputs and outputs to a neural network secret with vector homomorphic encryption.
Python
3
star
7

word2vec-nlp

Working word2vec skipgram implementation with AdaGrad gradient descent in pure python and numpy in~100 lines of code.
Python
2
star
8

Weighted-Job-Scheduling

Pythonic implementation of a O(nlog(n)) Weighted Job Scheduling algorithm with dynamic programming.
Python
1
star
9

GauchoMap

Easily find your classes on GOLD with this Chrome extension for UCSB students!
JavaScript
1
star
10

mapreduce_replicate

Mapreduce replicate algorithm implemented in Python 3.
Python
1
star
11

GloVe-NLP

Working GloVe implementation with AdaGrad gradient descent in pure python and numpy and ~100 lines of code.
Python
1
star
12

pcap-monitor-mode-analyzer

This Python script graphs various statistics of PCAP / PCAPNG captures made in monitor mode for analyzing wireless congestion.
Python
1
star