def fprop(self, x, isTest=False): if isTest: return x*(1-self.noiseLevel) else: return corrupt(x, self.theanoRng, 'mask', self.noiseLevel) # End DropoutLayer #-------------------------------------------------------------------------------
def bprop(self, x): return corrupt(x, self.theanoRng, self.backwardNoiseType, self.backwardNoiseLevel) # End BidirNoiseLayer #-------------------------------------------------------------------------------
def fprop(self, x): return corrupt(x, self.theanoRng, self.noiseType, self.noiseLevel) # End NoiseLayer #-------------------------------------------------------------------------------
def fprop(self, x): return corrupt(x, self.theanoRng, self.forwardNoiseType, self.forwardNoiseLevel)