public class NormalBayesClassifier extends StatModel
COMPRESSED_INPUT, PREPROCESSED_INPUT, RAW_OUTPUT, UPDATE_MODEL| Modifier | Constructor and Description |
|---|---|
protected |
NormalBayesClassifier(long addr) |
| Modifier and Type | Method and Description |
|---|---|
static NormalBayesClassifier |
__fromPtr__(long addr) |
static NormalBayesClassifier |
create()
Creates empty model
Use StatModel::train to train the model after creation.
|
protected void |
finalize() |
static NormalBayesClassifier |
load(String filepath)
Loads and creates a serialized NormalBayesClassifier from a file
Use NormalBayesClassifier::save to serialize and store an NormalBayesClassifier to disk.
|
static NormalBayesClassifier |
load(String filepath,
String nodeName)
Loads and creates a serialized NormalBayesClassifier from a file
Use NormalBayesClassifier::save to serialize and store an NormalBayesClassifier to disk.
|
float |
predictProb(Mat inputs,
Mat outputs,
Mat outputProbs)
Predicts the response for sample(s).
|
float |
predictProb(Mat inputs,
Mat outputs,
Mat outputProbs,
int flags)
Predicts the response for sample(s).
|
calcError, empty, getVarCount, isClassifier, isTrained, predict, predict, predict, train, train, trainclear, getDefaultName, getNativeObjAddr, savepublic static NormalBayesClassifier __fromPtr__(long addr)
public static NormalBayesClassifier create()
public static NormalBayesClassifier load(String filepath, String nodeName)
filepath - path to serialized NormalBayesClassifiernodeName - name of node containing the classifierpublic static NormalBayesClassifier load(String filepath)
filepath - path to serialized NormalBayesClassifierpublic float predictProb(Mat inputs, Mat outputs, Mat outputProbs, int flags)
inputs - automatically generatedoutputs - automatically generatedoutputProbs - automatically generatedflags - automatically generatedpublic float predictProb(Mat inputs, Mat outputs, Mat outputProbs)
inputs - automatically generatedoutputs - automatically generatedoutputProbs - automatically generatedCopyright © 2020. All rights reserved.