Edge-of-chaos Learning