Text this: Unsupervised Learning in a Ternary SNN Using STDP