forward(forwardMapObj);
numForwarded++;
}
}
} else {
final WeightValue probe = new WeightValue();
final Object[] forwardMapObj = new Object[3];
final FloatWritable fv = new FloatWritable();
for(Map.Entry<Object, PredictionModel> entry : label2model.entrySet()) {
Object label = entry.getKey();
forwardMapObj[0] = label;
PredictionModel model = entry.getValue();
numMixed += model.getNumMixed();
IMapIterator<Object, IWeightValue> itor = model.entries();
while(itor.next() != -1) {
itor.getValue(probe);
if(!probe.isTouched()) {
continue; // skip outputting untouched weights
}
Object k = itor.getKey();
fv.set(probe.get());
forwardMapObj[1] = k;
forwardMapObj[2] = fv;
forward(forwardMapObj);
numForwarded++;
}