quantifying artificial intelligence generalization