https://medium.com/@monocosmo77/how-far-have-we-come-with-spiking-neural-networks-part3-machine-learning-bc48956b6fb3