(self,inputs,targets)
Constructor
Constructor
Constructor
def __init__(self,inputs,targets):
		""" Constructor """
		# Set up network size
		if np.ndim(inputs)>1:
			self.nIn = np.shape(inputs)[1]
		else: 
			self.nIn = 1
	
		if np.ndim(targets)>1:
			self.nOut = np.shape(targets)[1]
		else:
			self.nOut = 1

		self.nData = np.shape(inputs)[0]
	
		# Initialise network
		self.weights = np.random.rand(self.nIn+1,self.nOut)*0.1-0.05
def __init__ ( self , inputs , targets ) : # Set up network size if np . ndim ( inputs ) > 1 : self . nIn = np . shape ( inputs ) [ 1 ] else : self . nIn = 1 if np . ndim ( targets ) > 1 : self . nOut = np . shape ( targets ) [ 1 ] else : self . nOut = 1 self . nData = np . shape ( inputs ) [ 0 ] # Initialise network self . weights = np . random . rand ( self . nIn + 1 , self . nOut ) * 0.1 - 0.05