def should_stop(scores, n_iter_no_change, tol, tree_type): gbdt = GradientBoostingClassifier(n_iter_no_change=n_iter_no_change, tol=tol, tree_type=tree_type) gbdt._validate_parameters() return gbdt._should_stop(scores)
def should_stop(scores, n_iter_no_change, tol): gbdt = GradientBoostingClassifier(n_iter_no_change=n_iter_no_change, tol=tol) return gbdt._should_stop(scores)