What is plot model function in clustering model in pycaret

This recipe explains what is plot model function in clustering model in pycaret

Recipe Objective - What is the plot_model function in the clustering model in pycaret?

PyCaret provides the plot_model function in the clustering module.

Access Retail Price Recommendation ML Project with Source Code

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.clustering.plot_models()" funtion. Plot model function analyzes the performance of a trained model on holdout set.

from pycaret.datasets import get_data
jewll = get_data('jewellery')
# importing clustering module
from pycaret.clustering import *
# initialize the setup
setup_name = setup(data = jewll)
# k_means clustering
k_means = create_model('kmeans')
# plotting clusters
plot_model(k_means, plot = 'cluster')

List of plots in PyCaret Clustering:-

‘cluster’ - Cluster PCA Plot (2d)

‘tsne’ - Cluster TSnE (3d)

‘elbow’ - Elbow Plot

‘silhouette’ - Silhouette Plot

‘distance’ - Distance Plot

‘distribution’ - Distribution Plot

What Users are saying..

profile image

Ameeruddin Mohammed

ETL (Abintio) developer at IBM
linkedin profile url

I come from a background in Marketing and Analytics and when I developed an interest in Machine Learning algorithms, I did multiple in-class courses from reputed institutions though I got good... Read More

Relevant Projects

AWS MLOps Project for Gaussian Process Time Series Modeling
MLOps Project to Build and Deploy a Gaussian Process Time Series Model in Python on AWS

Learn How to Build a Logistic Regression Model in PyTorch
In this Machine Learning Project, you will learn how to build a simple logistic regression model in PyTorch for customer churn prediction.

Tensorflow Transfer Learning Model for Image Classification
Image Classification Project - Build an Image Classification Model on a Dataset of T-Shirt Images for Binary Classification

Loan Eligibility Prediction Project using Machine learning on GCP
Loan Eligibility Prediction Project - Use SQL and Python to build a predictive model on GCP to determine whether an application requesting loan is eligible or not.

Recommender System Machine Learning Project for Beginners-4
Collaborative Filtering Recommender System Project - Comparison of different model based and memory based methods to build recommendation system using collaborative filtering.

Loan Eligibility Prediction in Python using H2O.ai
In this loan prediction project you will build predictive models in Python using H2O.ai to predict if an applicant is able to repay the loan or not.

Build an optimal End-to-End MLOps Pipeline and Deploy on GCP
Learn how to build and deploy an end-to-end optimal MLOps Pipeline for Loan Eligibility Prediction Model in Python on GCP

Multi-Class Text Classification with Deep Learning using BERT
In this deep learning project, you will implement one of the most popular state of the art Transformer models, BERT for Multi-Class Text Classification

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 Multi Class Image Classification Model Python using CNN
This project explains How to build a Sequential Model that can perform Multi Class Image Classification in Python using CNN