In machine learning, algorithms are mathematical operations carried out by using a variety of parameters. In the training process, we run an algorithm on a portion of data that has already been labeled with the characteristic we want the machine to learn, and then compare the output with the true labels. The parameters of the algorithm are tweaked in order to reduce a metric that represents the global error of the machine.