Building the Model

In anomaly detection tasks, learn to create, evaluate, plot, save the machine learning model and get information about inliers and outliers.

Creating and assigning the model

We use the create_model() function to train the local outlier factor model on the Wholesale Customers dataset. After that, we assign anomaly labels and scores to the dataset using the assign_model() function.

Get hands-on with 1400+ tech skills courses.