fixed typos in neural nets thanks to Ricardo Colome