def apply(self, layer, x, purpose) :
		"""Apply to a layer and update networks's log"""
		hyps = {}
		for k in self.hyperParameters :
			hyps[k] = getattr(self, k)

		message = "%s uses activation %s for %s" % (layer.name, self.__class__.__name__, purpose)
		layer.network.logLayerEvent(layer, message, hyps)
		return self.function(x)
dataset/ETHPy150Open tariqdaouda/Mariana/Mariana/activations.py/Activation_ABC.apply/original