Fixed trainig model logic, changed resources location