class turicreate.boosted_trees_classifier.BoostedTreesClassifier(proxy)

The gradient boosted trees model can be used as a classifier for predictive tasks.

The prediction is based on a collection of base learners i.e decision tree classifiers and combines them through a technique called gradient boosting.

Different from linear models like logistic regression or SVM, gradient boost trees can model non-linear interactions between the features and the target. This model is suitable for handling numerical features and categorical features with tens of categories but is less suitable for highly sparse features (text data), or with categorical variables that encode a large number of categories.

This model cannot be constructed directly. Instead, use turicreate.boosted_trees_classifier.create() to create an instance of this model. Additional details on parameter options and code samples are available in the documentation for the create function.

See also



BoostedTreesClassifier.classify(self, dataset) Return a classification, for each example in the dataset, using the trained boosted trees model.
BoostedTreesClassifier.evaluate(self, dataset) Evaluate the model by making predictions of target values and comparing these to actual values.
BoostedTreesClassifier.export_coreml(self, …) Export the model in Core ML format.
BoostedTreesClassifier.extract_features(…) For each example in the dataset, extract the leaf indices of each tree as features.
BoostedTreesClassifier.get_feature_importance(self) Get the importance of features used by the model.
BoostedTreesClassifier.predict(self, dataset) A flexible and advanced prediction API.
BoostedTreesClassifier.predict_topk(self, …) Return top-k predictions for the dataset, using the trained model.
BoostedTreesClassifier.save(self, location) Save the model.
BoostedTreesClassifier.summary(self[, output]) Print a summary of the model.