Boost

Objective-C

@interface Boost : DTrees

Swift

class Boost : DTrees

Boosted tree classifier derived from DTrees

See

REF: ml_intro_boost

Member of Ml

Methods

  • Creates the empty model. Use StatModel::train to train the model, Algorithm::load<Boost>(filename) to load the pre-trained model.

    Declaration

    Objective-C

    + (nonnull Boost *)create;

    Swift

    class func create() -> Boost
  • 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

    Declaration

    Objective-C

    + (nonnull Boost *)load:(nonnull NSString *)filepath
                   nodeName:(nonnull NSString *)nodeName;

    Swift

    class func load(filepath: String, nodeName: String) -> Boost

    Parameters

    filepath

    path to serialized Boost

    nodeName

    name of node containing the classifier

  • 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

    Declaration

    Objective-C

    + (nonnull Boost *)load:(nonnull NSString *)filepath;

    Swift

    class func load(filepath: String) -> Boost

    Parameters

    filepath

    path to serialized Boost

  • Declaration

    Objective-C

    - (double)getWeightTrimRate;

    Swift

    func getWeightTrimRate() -> Double
  • Declaration

    Objective-C

    - (int)getBoostType;

    Swift

    func getBoostType() -> Int32
  • Declaration

    Objective-C

    - (int)getWeakCount;

    Swift

    func getWeakCount() -> Int32
  • getBoostType - see: -getBoostType:

    Declaration

    Objective-C

    - (void)setBoostType:(int)val;

    Swift

    func setBoostType(val: Int32)
  • getWeakCount - see: -getWeakCount:

    Declaration

    Objective-C

    - (void)setWeakCount:(int)val;

    Swift

    func setWeakCount(val: Int32)
  • getWeightTrimRate - see: -getWeightTrimRate:

    Declaration

    Objective-C

    - (void)setWeightTrimRate:(double)val;

    Swift

    func setWeightTrimRate(val: Double)