Consistent inference of probabilities in layered networks: predictions and generalizations | Synapse