refactoring classifier computed prediction