How is generalization possible? Necessary conditions for good generalization. 1.The function you are trying to learn be, in some sense, smooth. In other words, a small change…