plot and evaluate model function in anomaly detection pycaret

This recipe explains the plot model and evaluate model function in anomaly detection using pycaret. The Plot model function analyzes the performance of a trained model and evaluate model function displays a user interface for analyzing performance of a trained model.

Recipe Objective - What are the plot_model and evaluate_model functions in anomaly detection in pycaret?

PyCaret provides plot_model and evaluate_model function in the anomaly detection module.

 

For more related projects:-

https://www.projectpro.io/projects/data-science-projects/tensorflow-projects
https://www.projectpro.io/projects/data-science-projects/keras-deep-learning-projects

plot_model function with Example:-

PyCaret provides "pycaret.anomaly.plot_models()" function. The Plot model function analyzes the performance of a trained model.

from pycaret.datasets import get_data
anmly = get_data('anomaly')
# importing anomaly module
from pycaret.anomaly import *
# initialize the setup
setup_name = setup(data = anmly)
# Knn model
knn = create_model('knn')
# plotting model
plot_model(knn, plot = 'tsne')

List of plots in PyCaret:-

‘tsne’ - t-SNE (3d) Dimension Plot

‘umap’ - UMAP Dimensionality Plot

evaluate_model function with Example:-

PyCaret provides "pycaret.anomaly.evaluate_model()" function. The evaluate_model function displays a user interface for analyzing the performance of a trained model.

from pycaret.datasets import get_data
anmly = get_data('anomaly')
# importing anomaly module
from pycaret.anomaly import *
# initialize the setup
setup_name = setup(data = anmly)
# Knn model
knn = create_model('knn')
# evaluate_model function
evaluate_model(knn)

What Users are saying..

profile image

Ray han

Tech Leader | Stanford / Yale University
linkedin profile url

I think that they are fantastic. I attended Yale and Stanford and have worked at Honeywell,Oracle, and Arthur Andersen(Accenture) in the US. I have taken Big Data and Hadoop,NoSQL, Spark, Hadoop... Read More

Relevant Projects

NLP Project on LDA Topic Modelling Python using RACE Dataset
Use the RACE dataset to extract a dominant topic from each document and perform LDA topic modeling in python.

AWS MLOps Project to Deploy Multiple Linear Regression Model
Build and Deploy a Multiple Linear Regression Model in Python on AWS

Stock Price Prediction Project using LSTM and RNN
Learn how to predict stock prices using RNN and LSTM models. Understand deep learning concepts and apply them to real-world financial data for accurate forecasting.

FEAST Feature Store Example for Scaling Machine Learning
FEAST Feature Store Example- Learn to use FEAST Feature Store to manage, store, and discover features for customer churn prediction machine learning project.

Build an AI Chatbot from Scratch using Keras Sequential Model
In this NLP Project, you will learn how to build an AI Chatbot from Scratch using Keras Sequential Model.

ML Model Deployment on AWS for Customer Churn Prediction
MLOps Project-Deploy Machine Learning Model to Production Python on AWS for Customer Churn Prediction

Build an End-to-End AWS SageMaker Classification Model
MLOps on AWS SageMaker -Learn to Build an End-to-End Classification Model on SageMaker to predict a patient’s cause of death.

Build a Hybrid Recommender System in Python using LightFM
In this Recommender System project, you will build a hybrid recommender system in Python using LightFM .

Ensemble Machine Learning Project - All State Insurance Claims Severity Prediction
In this ensemble machine learning project, we will predict what kind of claims an insurance company will get. This is implemented in python using ensemble machine learning algorithms.

Build an Image Segmentation Model using Amazon SageMaker
In this Machine Learning Project, you will learn to implement the UNet Architecture and build an Image Segmentation Model using Amazon SageMaker