def trainExtraTrees(features, n_estimators):
 [X, Y] = listOfFeatures2Matrix(features)
 et = sklearn.ensemble.ExtraTreesClassifier(n_estimators=n_estimators)
 et.fit(X, Y)
 return et

def trainExtraTrees ( features , n_estimators ) : [ X , Y ] = listOfFeatures2Matrix ( features ) et = sklearn . ensemble . ExtraTreesClassifier ( n_estimators = n_estimators ) et . fit ( X , Y ) return et
train a gradient boosting classifier note: this function is simply a wrapper to the sklearn functionality for extra tree classifiers see function trainsvm_feature() to use a wrapper on both the feature extraction and the svm training processes .