An exploration of error-driven learning in simple two-layer networks from a discriminative learning perspective | Synapse