Boost
Boosted tree classifier derived from DTrees
See
REF: ml_intro_boostMember of Ml
-
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
-
See
-setBoostType:
Declaration
Objective-C
- (int)getBoostType;
Swift
func getBoostType() -> Int32
-
See
-setWeakCount:
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)