Package org.opencv.ml

Class Boost


  • public class Boost
    extends DTrees
    Boosted tree classifier derived from DTrees SEE: REF: ml_intro_boost
    • Constructor Detail

      • Boost

        protected Boost​(long addr)
    • Method Detail

      • __fromPtr__

        public static Boost __fromPtr__​(long addr)
      • getBoostType

        public int getBoostType()
        SEE: setBoostType
        Returns:
        automatically generated
      • setBoostType

        public void setBoostType​(int val)
        getBoostType SEE: getBoostType
        Parameters:
        val - automatically generated
      • getWeakCount

        public int getWeakCount()
        SEE: setWeakCount
        Returns:
        automatically generated
      • setWeakCount

        public void setWeakCount​(int val)
        getWeakCount SEE: getWeakCount
        Parameters:
        val - automatically generated
      • getWeightTrimRate

        public double getWeightTrimRate()
        SEE: setWeightTrimRate
        Returns:
        automatically generated
      • setWeightTrimRate

        public void setWeightTrimRate​(double val)
        getWeightTrimRate SEE: getWeightTrimRate
        Parameters:
        val - automatically generated
      • create

        public static Boost create()
        Creates the empty model. Use StatModel::train to train the model, Algorithm::load<Boost>(filename) to load the pre-trained model.
        Returns:
        automatically generated
      • load

        public static Boost load​(String filepath,
                                 String nodeName)
        Loads and creates a serialized Boost from a file Use Boost::save to serialize and store an RTree to disk. Load the Boost from this file again, by calling this function with the path to the file. Optionally specify the node for the file containing the classifier
        Parameters:
        filepath - path to serialized Boost
        nodeName - name of node containing the classifier
        Returns:
        automatically generated
      • load

        public static Boost load​(String filepath)
        Loads and creates a serialized Boost from a file Use Boost::save to serialize and store an RTree to disk. Load the Boost from this file again, by calling this function with the path to the file. Optionally specify the node for the file containing the classifier
        Parameters:
        filepath - path to serialized Boost
        Returns:
        automatically generated