Refactoring the evaluation, and batch predictions REST calls