Introduction Machine learning is a branch of computer science that enables computers to learn without…