Learning and adaptation under uncertainty and ambiguity