126 SIZE_CHECK(predictions.numberOfElements() == weights.size());
130 for(std::size_t i = 0; i != predictions.numberOfBatches(); ++i){
131 for(std::size_t j = 0; j != targets.
batch(i).size(); ++j){
132 error+= weights(i) * evalSingle(targets.
batch(i)(j),row(predictions.batch(i),j));
135 return error / weights.size();