The `fit_predict` function in the `IsolationForest` class of the `sklearn.ensemble` module in Python is used to fit the Isolation Forest model to the given training dataset and predict the anomaly values for the dataset. It returns an array of predictions where -1 indicates an anomaly and 1 indicates a normal data point.
Python IsolationForest.fit_predict - 31 examples found. These are the top rated real world Python examples of sklearn.ensemble.IsolationForest.fit_predict extracted from open source projects. You can rate examples to help us improve the quality of examples.