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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
import numpy as np | |
import os | |
import zconfig | |
import utils | |
class DenoisingAutoencoder(object): | |
""" Implementation of Denoising Autoencoders using TensorFlow. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
This module extends scipy modules for saving and loading images losslessly. | |
It ensures files are written and arrays returned are in 32-bit integer format | |
PIL Modes: L - 8 bit, I - 32 bit, RGB, RGBA, 1 - 1 bit | |
@author: Shekhar S. Chandra | |
''' | |
import Image #PIL | |
import numpy as np | |
import scipy.misc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# complex arith for programming with other languages | |
# - required functions: exp(f), log(f), sin(f), cos(f), atan2(f), pow(f1, f2) | |
import math | |
# [equality for complex] | |
def ceq(a, b): | |
return a.real == b.real and a.imag == b.imag | |
# [add, sub, mul for complex] |