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

クラス SVMSGD


  • public class SVMSGD extends StatModel
    *************************************************************************************\ 確率的勾配降下法 SVM 分類器 * \***************************************************************************************
    • コンストラクタの詳細

      • SVMSGD

        protected SVMSGD​(long addr)
    • メソッドの詳細

      • __fromPtr__

        public static SVMSGD __fromPtr__​(long addr)
      • getWeights

        public Mat getWeights()
        戻り値:
        学習済みモデルの重み(決定関数 f(x) = weights * x + shift)。
      • getShift

        public float getShift()
        戻り値:
        学習済みモデルのシフト(決定関数 f(x) = weights * x + shift)。
      • create

        public static SVMSGD create()
        Creates empty model. Use StatModel::train to train the model. Since %SVMSGD has several parameters, you may want to find the best parameters for your problem or use setOptimalParameters() to set some default parameters.
        戻り値:
        自動生成
      • load

        public static SVMSGD load​(java.lang.String filepath,
                                  java.lang.String nodeName)
        Loads and creates a serialized SVMSGD from a file Use SVMSGD::save to serialize and store an SVMSGD to disk. Load the SVMSGD 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 - シリアライズされた SVMSGD へのパス
        nodeName - 分類器を含むノードの名前
        戻り値:
        自動生成
      • load

        public static SVMSGD load​(java.lang.String filepath)
        Loads and creates a serialized SVMSGD from a file Use SVMSGD::save to serialize and store an SVMSGD to disk. Load the SVMSGD 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 - シリアライズされた SVMSGD へのパス
        戻り値:
        自動生成
      • setOptimalParameters

        public void setOptimalParameters​(int svmsgdType,
                                         int marginType)
        Function sets optimal parameters values for chosen SVM SGD model.
        引数:
        svmsgdType - SVMSGD 分類器の型。
        marginType - マージン制約の型。
      • setOptimalParameters

        public void setOptimalParameters​(int svmsgdType)
        Function sets optimal parameters values for chosen SVM SGD model.
        引数:
        svmsgdType - SVMSGD 分類器の型。
      • setOptimalParameters

        public void setOptimalParameters()
        Function sets optimal parameters values for chosen SVM SGD model.
      • getSvmsgdType

        public int getSvmsgdType()
        SEE: setSvmsgdType
        戻り値:
        自動生成
      • setSvmsgdType

        public void setSvmsgdType​(int svmsgdType)
        getSvmsgdType SEE: getSvmsgdType
        引数:
        svmsgdType - 自動生成
      • getMarginType

        public int getMarginType()
        SEE: setMarginType
        戻り値:
        自動生成
      • setMarginType

        public void setMarginType​(int marginType)
        getMarginType SEE: getMarginType
        引数:
        marginType - 自動生成
      • getMarginRegularization

        public float getMarginRegularization()
        SEE: setMarginRegularization
        戻り値:
        自動生成
      • setMarginRegularization

        public void setMarginRegularization​(float marginRegularization)
        getMarginRegularization SEE: getMarginRegularization
        引数:
        marginRegularization - 自動生成
      • getInitialStepSize

        public float getInitialStepSize()
        SEE: setInitialStepSize
        戻り値:
        自動生成
      • setInitialStepSize

        public void setInitialStepSize​(float InitialStepSize)
        getInitialStepSize SEE: getInitialStepSize
        引数:
        InitialStepSize - 自動生成
      • getStepDecreasingPower

        public float getStepDecreasingPower()
        SEE: setStepDecreasingPower
        戻り値:
        自動生成
      • setStepDecreasingPower

        public void setStepDecreasingPower​(float stepDecreasingPower)
        getStepDecreasingPower SEE: getStepDecreasingPower
        引数:
        stepDecreasingPower - 自動生成
      • getTermCriteria

        public TermCriteria getTermCriteria()
        SEE: setTermCriteria
        戻り値:
        自動生成
      • setTermCriteria

        public void setTermCriteria​(TermCriteria val)
        getTermCriteria SEE: getTermCriteria
        引数:
        val - 自動生成