Create choose.best.model.function