The learning algorithm is some method based on the training set to choose a hypothesis, g, from the learning model.