def __getitem__(self, i):
        """ Return a temp object with some properties set """
        if type(i) == int:
            return Node(
                layer = self,
                position = i,
                activation = self.activation[i],
                error = self.error[i],
                target = self.target[i],
                netinput = self.netinput[i],
                weight = self.weight[i]
                )
        else:
            raise AttributeError("expected integer instead of '%s'" % i)
def __getitem__ ( self , i ) : if type ( i ) == int : return Node ( layer = self , position = i , activation = self . activation [ i ] , error = self . error [ i ] , target = self . target [ i ] , netinput = self . netinput [ i ] , weight = self . weight [ i ] ) else : raise AttributeError ( "expected integer instead of '%s'" % i )
Return a temp object with some properties set