Machine learning methods for the improvement of event containment in the NOvA far detector