* Deserializes a new MultinomialNaiveBayesClassifier from the given input
* stream. Note that "in" will not be closed by this method.
*/
public static MultinomialNaiveBayes deserialize(DataInput in)
throws IOException {
MatrixWritable matrixWritable = new MatrixWritable();
matrixWritable.readFields(in);
DoubleVector classProbability = VectorWritable.readVector(in);
return new MultinomialNaiveBayes(matrixWritable.getMatrix(),
classProbability);
}