Model.train wrapped explained