Elffuss BraidHub

kikocis/auto-code-rover public

main · 1.3 KiBRawPermalink
1diff --git a/sklearn/ensemble/iforest.py b/sklearn/ensemble/iforest.py
2--- a/sklearn/ensemble/iforest.py
3+++ b/sklearn/ensemble/iforest.py
4@@ -120,6 +120,12 @@ class IsolationForest(BaseBagging, OutlierMixin):
5 verbose : int, optional (default=0)
6 Controls the verbosity of the tree building process.
7
8+ warm_start : bool, optional (default=False)
9+ When set to ``True``, reuse the solution of the previous call to fit
10+ and add more estimators to the ensemble, otherwise, just fit a whole
11+ new forest. See :term:`the Glossary <warm_start>`.
12+
13+ .. versionadded:: 0.21
14
15 Attributes
16 ----------
17@@ -173,7 +179,8 @@ def __init__(self,
18 n_jobs=None,
19 behaviour='old',
20 random_state=None,
21- verbose=0):
22+ verbose=0,
23+ warm_start=False):
24 super().__init__(
25 base_estimator=ExtraTreeRegressor(
26 max_features=1,
27@@ -185,6 +192,7 @@ def __init__(self,
28 n_estimators=n_estimators,
29 max_samples=max_samples,
30 max_features=max_features,
31+ warm_start=warm_start,
32 n_jobs=n_jobs,
33 random_state=random_state,
34 verbose=verbose)