public Void createContext(Attributed algorithm, TTDataSet dataSet, Recommender recommender) {
Preconditions.checkState(evalLayout != null, "evaluation not in progress");
TableWriter w = evalLayout.prefixTable(writer, algorithm, dataSet);
for (List<Object> row: function.apply(recommender)) {
try {
w.writeRow(row.toArray());
} catch (IOException e) {
throw new RuntimeException("error writing row", e);
}
}
return null;