Esempio n. 1
0
 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 '') + ']'
Esempio n. 2
0
 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 '') + ']'
Esempio n. 3
0
 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
Esempio n. 4
0
    def __str__(self):
        return '(' + collections.listtostr(
            self.indids) + "):[" + collections.dicttostr(self.features) + "]"


#endregion