salesforce / logai

LogAI - An open-source library for log analytics and intelligence
BSD 3-Clause "New" or "Revised" License
456 stars 66 forks source link

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 5 months ago

bitexeloop commented 5 months ago

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 commented 3 months ago

Same here

mondeepboruah29 commented 1 month ago

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**