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

クラス DTrees

  • 既知の直接サブクラス:
    Boost, RTrees

    public class DTrees
    extends StatModel
    The class represents a single decision tree or a collection of decision trees. The current public interface of the class allows user to train only a single decision tree, however the class is capable of storing multiple decision trees and using them for prediction (by summing responses or using a voting schemes), and the derived from DTrees classes (such as RTrees and Boost) use this capability to implement decision tree ensembles. SEE: REF: ml_intro_trees
    • コンストラクタの詳細

      • DTrees

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

      • __fromPtr__

        public static DTrees __fromPtr__​(long addr)
      • getMaxCategories

        public int getMaxCategories()
        SEE: setMaxCategories
        戻り値:
        自動生成
      • setMaxCategories

        public void setMaxCategories​(int val)
        getMaxCategories SEE: getMaxCategories
        引数:
        val - 自動生成
      • getMaxDepth

        public int getMaxDepth()
        SEE: setMaxDepth
        戻り値:
        自動生成
      • setMaxDepth

        public void setMaxDepth​(int val)
        getMaxDepth SEE: getMaxDepth
        引数:
        val - 自動生成
      • getMinSampleCount

        public int getMinSampleCount()
        SEE: setMinSampleCount
        戻り値:
        自動生成
      • setMinSampleCount

        public void setMinSampleCount​(int val)
        getMinSampleCount SEE: getMinSampleCount
        引数:
        val - 自動生成
      • getCVFolds

        public int getCVFolds()
        SEE: setCVFolds
        戻り値:
        自動生成
      • setCVFolds

        public void setCVFolds​(int val)
        getCVFolds SEE: getCVFolds
        引数:
        val - 自動生成
      • getUseSurrogates

        public boolean getUseSurrogates()
        SEE: setUseSurrogates
        戻り値:
        自動生成
      • setUseSurrogates

        public void setUseSurrogates​(boolean val)
        getUseSurrogates SEE: getUseSurrogates
        引数:
        val - 自動生成
      • getUse1SERule

        public boolean getUse1SERule()
        SEE: setUse1SERule
        戻り値:
        自動生成
      • setUse1SERule

        public void setUse1SERule​(boolean val)
        getUse1SERule SEE: getUse1SERule
        引数:
        val - 自動生成
      • getTruncatePrunedTree

        public boolean getTruncatePrunedTree()
        SEE: setTruncatePrunedTree
        戻り値:
        自動生成
      • setTruncatePrunedTree

        public void setTruncatePrunedTree​(boolean val)
        getTruncatePrunedTree SEE: getTruncatePrunedTree
        引数:
        val - 自動生成
      • getRegressionAccuracy

        public float getRegressionAccuracy()
        SEE: setRegressionAccuracy
        戻り値:
        自動生成
      • setRegressionAccuracy

        public void setRegressionAccuracy​(float val)
        getRegressionAccuracy SEE: getRegressionAccuracy
        引数:
        val - 自動生成
      • getPriors

        public Mat getPriors()
        SEE: setPriors
        戻り値:
        自動生成
      • setPriors

        public void setPriors​(Mat val)
        getPriors SEE: getPriors
        引数:
        val - 自動生成
      • create

        public static DTrees create()
        Creates the empty model The static method creates empty decision tree with the specified parameters. It should be then trained using train method (see StatModel::train). Alternatively, you can load the model from file using Algorithm::load<DTrees>(filename).
        戻り値:
        自動生成
      • load

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

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