It could work if we extend syntax like this:
```python
class Neuron:
    activation # By default creates activation with None value
    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))
```
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/I7LHY3X3MV4U36VHKHK3B3L2QNHWG42T/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to