mv_machine_learning: fix coverity issues