Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The 'warm_start' parameter of IsolationForest must be an instance of 'bool' or an instance of 'numpy.bool_'. Got 0 instead. #74

Open
bitexeloop opened this issue Jul 3, 2024 · 2 comments

Comments

@bitexeloop
Copy link

I am trying to test the Isolation Forest algorithm for anomaly detection, but I keep encountering an error. Despite setting the 'warm_start' parameter to 'False' in the dashboard (and also attempting with 'True'), the error persists.

@TzLiu
Copy link

TzLiu commented Aug 27, 2024

Same here

@mondeepboruah29
Copy link

There is is a small bug in the isolation_forest.py file line no 65 I think.
self.model = IsolationForest(
n_estimators=params.n_estimators,
max_samples=params.max_samples,
contamination=params.contamination,
max_features=params.max_features,
bootstrap=params.bootstrap,
n_jobs=params.n_jobs,
random_state=params.random_state,
verbose=params.verbose,
warm_start=params.verbose,
)

    the corrected code should be warm_start=params.warm_start
    
 file path : **logai\algorithms\anomaly_detection_algo\isolation_forest.py**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants