errorFromDataSet added

Extend DeepNetwork interface with computing the error from a specific dataset.