Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/p/r/Predicting-Code-Popularity-HEAD/bagging.py   Predicting-Code-Popularity(Download)
import numpy as np
from sklearn.ensemble.base import BaseEnsemble
from sklearn.ensemble.forest import ForestClassifier, RandomForestClassifier
from sklearn.tree import DecisionTreeClassifier
 
        # hack to make us look like a classifier
        # this tells CV to use stratified shuffles
        self.estimator = RandomForestClassifier()
 
    def fit(self, X, y, sample_weight=None):