How Prior Knowledge Affects Learning