[ML][Train] Integrated createModel methods and fixes few issues