Neural nets for decoding error-correcting codes