public class BinaryNaiveBayesModelReader extends NaiveBayesModelReader
Constructor and Description |
---|
BinaryNaiveBayesModelReader(DataInputStream dis)
Constructor which directly instantiates the DataInputStream containing
the model contents.
|
BinaryNaiveBayesModelReader(File f)
Constructor which takes a File and creates a reader for it.
|
checkModelType, constructModel
getModel, readDouble, readInt, readUTF
public BinaryNaiveBayesModelReader(DataInputStream dis)
dis
- The DataInputStream containing the model information.public BinaryNaiveBayesModelReader(File f) throws IOException
f
- The File in which the model is stored.IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.