On Wed, Aug 5, 2020 at 8:01 PM <[email protected]> wrote: > > It could work if we extend syntax like this: > ```python > class Neuron: > activation # By default creates activation with None value\
Why not just "activation = None"? > activation = linear_activation(activation) > ``` > and then we could apply as may decorators as needed: > ```python > class Neuron: > activation # By default creates activation with None value > activation = linear_activation(activation) > activation = softmax_activation(weights=["w0", > "w1"])(linear_activation(activation)) > ``` You can already do this. ChrisA _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/GPHRQPC53OCTUQ4LDPXSW6NMVCRCNTAE/ Code of Conduct: http://python.org/psf/codeofconduct/
