def __repr__(self): #stateStr = collections.dicttostr(self.states) varStr = collections.listtostr(list(map(lambda v: v.__repr__(), self.variables))) return 'Synapse' + str(self.id) + '[' + str(self.fromId) + '->' + str(self.toId) \ + (',' + varStr if strs.isVaild(varStr) else '') + ']'
def __str__(self): #stateStr = collections.dicttostr(self.states) varStr = collections.listtostr(list(map(lambda v:v.__repr__(),self.variables))) return 'Neuron'+str(self.id)+'[layer='+str(self.layer) \ + (',' + varStr if strs.isVaild(varStr) else '') + ']'
def __str__(self): varStr = collections.listtostr(list(map(lambda v: v.__repr__(), self.variables))) varStr = '[' + varStr + "]" if strs.isVaild(varStr) else '' return 'Synapse'+str(self.id)+'('+str(self.fromId)+'->'+str(self.toId)+')' + varStr
def __str__(self): return '(' + collections.listtostr( self.indids) + "):[" + collections.dicttostr(self.features) + "]" #endregion