CodSoft interview question

How to train machine learning models