The `fit_predict` function in the `sklearn.svm.OneClassSVM` module is used to train the One-Class SVM model on the given data and then make predictions on the same data. This function fits the model to the training data provided as input and returns the labels for each instance in the training set, indicating whether each instance is an inlier (1) or an outlier (-1) according to the fitted model.
Python OneClassSVM.fit_predict - 30 examples found. These are the top rated real world Python examples of sklearn.svm.OneClassSVM.fit_predict extracted from open source projects. You can rate examples to help us improve the quality of examples.