🤖 AIによる機械翻訳(非公式) — これは OpenCV 5.0.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
Package org.opencv.ml
クラス SVMSGD
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.ml.StatModel
-
- org.opencv.ml.SVMSGD
public class SVMSGD extends StatModel
*************************************************************************************\ 確率的勾配降下法 SVM 分類器 * \***************************************************************************************
-
-
フィールドの要約
フィールド Modifier and Type Field Description static intASGDstatic intHARD_MARGINstatic intSGDstatic intSOFT_MARGIN-
クラス org.opencv.ml.StatModel から継承されたフィールド
COMPRESSED_INPUT, PREPROCESSED_INPUT, RAW_OUTPUT, UPDATE_MODEL
-
-
コンストラクタの要約
コンストラクタ Modifier Constructor Description protectedSVMSGD​(long addr)
-
メソッドの要約
すべてのメソッド 静的メソッド インスタンスメソッド 具象メソッド Modifier and Type Method Description static SVMSGD__fromPtr__​(long addr)static SVMSGDcreate()Creates empty model.floatgetInitialStepSize()SEE: setInitialStepSizefloatgetMarginRegularization()SEE: setMarginRegularizationintgetMarginType()SEE: setMarginTypefloatgetShift()floatgetStepDecreasingPower()SEE: setStepDecreasingPowerintgetSvmsgdType()SEE: setSvmsgdTypeTermCriteriagetTermCriteria()SEE: setTermCriteriaMatgetWeights()static SVMSGDload​(java.lang.String filepath)Loads and creates a serialized SVMSGD from a file Use SVMSGD::save to serialize and store an SVMSGD to disk.static SVMSGDload​(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.voidsetInitialStepSize​(float InitialStepSize)getInitialStepSize SEE: getInitialStepSizevoidsetMarginRegularization​(float marginRegularization)getMarginRegularization SEE: getMarginRegularizationvoidsetMarginType​(int marginType)getMarginType SEE: getMarginTypevoidsetOptimalParameters()Function sets optimal parameters values for chosen SVM SGD model.voidsetOptimalParameters​(int svmsgdType)Function sets optimal parameters values for chosen SVM SGD model.voidsetOptimalParameters​(int svmsgdType, int marginType)Function sets optimal parameters values for chosen SVM SGD model.voidsetStepDecreasingPower​(float stepDecreasingPower)getStepDecreasingPower SEE: getStepDecreasingPowervoidsetSvmsgdType​(int svmsgdType)getSvmsgdType SEE: getSvmsgdTypevoidsetTermCriteria​(TermCriteria val)getTermCriteria SEE: getTermCriteria-
クラス 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 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- 自動生成
-
-