public static void evaluateModel( BaseDatasetIterator iterator, BaseMultiLayerNeuralNetworkVectorized model ) throws IOException {
Evaluation eval = new Evaluation();
//BaseMultiLayerNeuralNetworkVectorized load = BaseMultiLayerNeuralNetworkVectorized.loadFromFile(new FileInputStream(new File(modelLocation)));
while (iterator.hasNext()) {
DataSet inputs = iterator.next();
Matrix in = inputs.getFirst();
Matrix outcomes = inputs.getSecond();
Matrix predicted = model.predict(in);
eval.eval( outcomes, predicted );
}
log.warn( "evaluateModel" );
log.info( eval.stats() );
//writeReportToDisk( eval, pathForReport );
}