def neuralnet(cls):
 NeuralNetBase.subclasses[cls.__name__] = cls
 return cls

def neuralnet ( cls ) : NeuralNetBase . subclasses [ cls . __name__ ] = cls return cls
class decorator for registering subclasses of neuralnetbase .