public class NaiveBayesModelReader extends AbstractModelReader
Constructor and Description |
---|
NaiveBayesModelReader(DataReader dataReader) |
NaiveBayesModelReader(File file) |
Modifier and Type | Method and Description |
---|---|
void |
checkModelType() |
AbstractModel |
constructModel()
Retrieve a model from disk.
|
getModel, readDouble, readInt, readUTF
public NaiveBayesModelReader(File file) throws IOException
IOException
public NaiveBayesModelReader(DataReader dataReader)
public AbstractModel constructModel() throws IOException
If you are creating a reader for a format which won't work with this (perhaps a database or xml file), override this method and ignore the other methods provided in this abstract class.
constructModel
in class AbstractModelReader
IOException
public void checkModelType() throws IOException
checkModelType
in class AbstractModelReader
IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.