Matrix matrix = new SparseMatrix(new int[] {labelCount, featureCount});
for (Pair<IntWritable,VectorWritable> record
: new SequenceFileIterable<IntWritable,VectorWritable>(classVectorPath, true, conf)) {
IntWritable label = record.getFirst();
VectorWritable value = record.getSecond();
matrix.assignRow(label.get(), value.get());
}
model.setWeightMatrix(matrix);
// read theta normalizer