What is plot model function in NLP in pycaret

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

Recipe Objective - What is the plot_model function in NLP in pycaret?

PyCaret provides the plot_model function in the NLP module.

 

For more related projects:-

https://www.dezyre.com/projects/data-science-projects/tensorflow-projects
https://www.dezyre.com/projects/data-science-projects/keras-deep-learning-projects

plot_model function with Example:-

PyCaret prvides "pycaret.nlp.plot_models()" funtion. Plot model function analyzes the performance of a trained model.

from pycaret.datasets import get_data
kiva = get_data('kiva')
# importing NLP module
from pycaret.nlp import *
# initialize the setup
setup_name = setup(data = kiva, target = 'en')
# Latent Dirichlet Allocation model
lda = create_model('lda')
# plotting model
plot_model(lda, plot = 'frequency')

List of plots:-

Word Token Frequency - ‘frequency’

Word Distribution Plot - ‘distribution’

Bigram Frequency Plot - ‘bigram’

Trigram Frequency Plot - ‘trigram’

Sentiment Polarity Plot - ‘sentiment’

What Users are saying..

profile image

Ed Godalle

Director Data Analytics at EY / EY Tech
linkedin profile url

I am the Director of Data Analytics with over 10+ years of IT experience. I have a background in SQL, Python, and Big Data working with Accenture, IBM, and Infosys. I am looking to enhance my skills... Read More

Relevant Projects

AWS MLOps Project for ARCH and GARCH Time Series Models
Build and deploy ARCH and GARCH time series forecasting models in Python on AWS .

Deploy Transformer BART Model for Text summarization on GCP
Learn to Deploy a Machine Learning Model for the Abstractive Text Summarization on Google Cloud Platform (GCP)

A/B Testing Approach for Comparing Performance of ML Models
The objective of this project is to compare the performance of BERT and DistilBERT models for building an efficient Question and Answering system. Using A/B testing approach, we explore the effectiveness and efficiency of both models and determine which one is better suited for Q&A tasks.

Customer Churn Prediction Analysis using Ensemble Techniques
In this machine learning churn project, we implement a churn prediction model in python using ensemble techniques.

Credit Card Fraud Detection as a Classification Problem
In this data science project, we will predict the credit card fraud in the transactional dataset using some of the predictive models.

Learn to Build a Polynomial Regression Model from Scratch
In this Machine Learning Regression project, you will learn to build a polynomial regression model to predict points scored by the sports team.

MLOps AWS Project on Topic Modeling using Gunicorn Flask
In this project we will see the end-to-end machine learning development process to design, build and manage reproducible, testable, and evolvable machine learning models by using AWS

BERT Text Classification using DistilBERT and ALBERT Models
This Project Explains how to perform Text Classification using ALBERT and DistilBERT

Learn to Build an End-to-End Machine Learning Pipeline - Part 1
In this Machine Learning Project, you will learn how to build an end-to-end machine learning pipeline for predicting truck delays, addressing a major challenge in the logistics industry.

Digit Recognition using CNN for MNIST Dataset in Python
In this deep learning project, you will build a convolutional neural network using MNIST dataset for handwritten digit recognition.