public class NormalBayesClassifier extends StatModel
COMPRESSED_INPUT, PREPROCESSED_INPUT, RAW_OUTPUT, UPDATE_MODEL| 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.
|
static NormalBayesClassifier |
load(java.lang.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(java.lang.String filepath,
java.lang.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(java.lang.String filepath)
filepath - path to serialized NormalBayesClassifierpublic static NormalBayesClassifier load(java.lang.String filepath, java.lang.String nodeName)
filepath - path to serialized NormalBayesClassifiernodeName - name of node containing the classifierpublic float predictProb(Mat inputs, Mat outputs, Mat outputProbs)
inputs - automatically generatedoutputs - automatically generatedoutputProbs - automatically generatedpublic float predictProb(Mat inputs, Mat outputs, Mat outputProbs, int flags)
inputs - automatically generatedoutputs - automatically generatedoutputProbs - automatically generatedflags - automatically generatedGenerated on 2020-04-03 16:05:20 / OpenCV 4.3.0