function that compares output of neural network with the expected outcome given in a training set.
measures how far off we are from the expected value. y represents true value a represents neuron's prediction
The main change , said Jim Walton , CNN 's president , is a fundamental shift in the way CNN collects its news .