🤖 AIによる機械翻訳(非公式) — これは OpenCV 4.13.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
Package org.opencv.ml

Class NormalBayesClassifier


  • public class NormalBayesClassifier extends StatModel
    正規分布に従うデータに対するベイズ分類器。参照: REF: ml_intro_bayes
    • コンストラクタの詳細

      • NormalBayesClassifier

        protected NormalBayesClassifier​(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 へのパス
        戻り値:
        自動生成