MIA-GCL / GRACE / GCL2 / eval / random_forest.py
random_forest.py
Raw
from sklearn.ensemble import RandomForestClassifier
from GCL.eval import BaseSKLearnEvaluator


class RFEvaluator(BaseSKLearnEvaluator):
    def __init__(self, params=None):
        if params is None:
            params = {'n_estimators': [100, 200, 500, 1000]}
        super(RFEvaluator, self).__init__(RandomForestClassifier(), params)