Did I find the right examples for you? yes no

All Samples(2)  |  Call(0)  |  Derive(1)  |  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
 
class BalanceForcedRandomForestClassifier(ForestClassifier):
    def __init__(self,
                 n_estimators=10,
                 criterion="gini",
                 max_depth=None,