Minor fix in the ML code. Added different base models option