Prediction with a Generalized Cost of Error Function | Synapse