🤖 AIによる機械翻訳(非公式) — これは OpenCV 4.13.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
Package org.opencv.ml
Class NormalBayesClassifier
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.ml.StatModel
-
- org.opencv.ml.NormalBayesClassifier
public class NormalBayesClassifier extends StatModel
正規分布に従うデータに対するベイズ分類器。参照: REF: ml_intro_bayes
-
-
フィールドの要約
-
クラス org.opencv.ml.StatModel から継承されたフィールド
COMPRESSED_INPUT, PREPROCESSED_INPUT, RAW_OUTPUT, UPDATE_MODEL
-
-
コンストラクタの要約
コンストラクタ Modifier Constructor Description protectedNormalBayesClassifier​(long addr)
-
メソッドの要約
すべてのメソッド 静的メソッド インスタンスメソッド 具象メソッド Modifier and Type Method Description static NormalBayesClassifier__fromPtr__​(long addr)static NormalBayesClassifiercreate()Creates empty model Use StatModel::train to train the model after creation.static NormalBayesClassifierload​(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 NormalBayesClassifierload​(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.floatpredictProb​(Mat inputs, Mat outputs, Mat outputProbs)Predicts the response for sample(s).floatpredictProb​(Mat inputs, Mat outputs, Mat outputProbs, int flags)Predicts the response for sample(s).-
クラス org.opencv.ml.StatModel から継承されたメソッド
calcError, empty, getVarCount, isClassifier, isTrained, predict, predict, predict, train, train, train
-
クラス org.opencv.core.Algorithm から継承されたメソッド
clear, getDefaultName, getNativeObjAddr, save
-
-
-
-
メソッドの詳細
-
__fromPtr__
public static NormalBayesClassifier __fromPtr__​(long addr)
-
predictProb
public float predictProb​(Mat inputs, Mat outputs, Mat outputProbs, int flags)
Predicts the response for sample(s). The method estimates the most probable classes for input vectors. Input vectors (one or more) are stored as rows of the matrix inputs. In case of multiple input vectors, there should be one output vector outputs. The predicted class for a single input vector is returned by the method. The vector outputProbs contains the output probabilities corresponding to each element of result.- 引数:
inputs- 自動生成outputs- 自動生成outputProbs- 自動生成flags- 自動生成- 戻り値:
- 自動生成
-
predictProb
public float predictProb​(Mat inputs, Mat outputs, Mat outputProbs)
Predicts the response for sample(s). The method estimates the most probable classes for input vectors. Input vectors (one or more) are stored as rows of the matrix inputs. In case of multiple input vectors, there should be one output vector outputs. The predicted class for a single input vector is returned by the method. The vector outputProbs contains the output probabilities corresponding to each element of result.- 引数:
inputs- 自動生成outputs- 自動生成outputProbs- 自動生成- 戻り値:
- 自動生成
-
create
public static NormalBayesClassifier create()
Creates empty model Use StatModel::train to train the model after creation.- 戻り値:
- 自動生成
-
load
public 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. Load the NormalBayesClassifier from this file again, by calling this function with the path to the file. Optionally specify the node for the file containing the classifier- 引数:
filepath- シリアライズされた NormalBayesClassifier へのパスnodeName- 分類器を含むノードの名前- 戻り値:
- 自動生成
-
load
public 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. Load the NormalBayesClassifier from this file again, by calling this function with the path to the file. Optionally specify the node for the file containing the classifier- 引数:
filepath- シリアライズされた NormalBayesClassifier へのパス- 戻り値:
- 自動生成
-
-