def _activate_function(self, input_data): try: #I = np.dot(np.log(W),Y) I = np.dot(accel.log(self.W), input_data) #I = np.dot(self._log(W),input_data) except: I = np.sum(np.sum(input_data[np.newaxis, :, :] * accel.log(self.W), axis=1), axis=1) #TODO: Check This! return I.astype('float64')
def _activate_function(self, input_data): try: #I = np.dot(np.log(W),Y) I = np.dot(accel.log(self.W),input_data) #I = np.dot(self._log(W),input_data) except: I = np.sum(np.sum( input_data[np.newaxis,:,:]*accel.log(self.W), axis=1),axis=1) #TODO: Check This! return I.astype('float64')
def _activate_function(self, input_data): #I = np.dot(np.log(self.W),Y) I = np.dot(accel.log(self.W), input_data) #I = np.dot(self._log(self.W),input_data) return I.astype('float64')
def _activate_function(self, input_data): #I = np.dot(np.log(self.W),Y) I = np.dot(accel.log(self.W),input_data) #I = np.dot(self._log(self.W),input_data) return I.astype('float64')