Autonomous Qualitative Learning Of Distinctions And Actions In A Developing Agent