Computing model output over dataset

you can try EvalResult.write