Introduction The term machine learning refers to a wide range of methods for extracting patterns…