logistic regression is a machine learning algorithm to perform classification on a dataset. Sample training and testing sets have been provided with the code.