PyCaret 2.3.6 is Here! Learn What’s New?
PyCaret 2.3.6 is Here! Learn What’s New? From EDA to Deployment to AI Fairness — By far the biggest release of PyCaret
🚀 Introduction
PyCaret is an open-source, low-code machine learning library in Python that automates machine learning workflows. It is an end-to-end machine learning and model management tool that speeds up the experiment cycle exponentially and makes you more productive.
By far PyCaret 2.3.6 is the biggest release in terms of the new features and functionalities. This article demonstrates the use of new functionalities added in the recent release of PyCaret 2.3.6.
💻 Installation
Installation is easy and will only take a few minutes. PyCaret’s default installation from pip only installs hard dependencies as listed in the requirements.txt file.
To install the full version:
📈 Dashboard
This function will generate the interactive dashboard for a trained model. The dashboard is implemented using the ExplainerDashboard.
Video Demo:
📊 Exploratory Data Analysis (EDA)
This function will generate automated EDA using the AutoViz integration.
Video Demo:
🚊 Convert Model
This function will transpile trained machine learning models into native inference scripts in different programming languages (Python, C, Java, Go, JavaScript, Visual Basic, C#, PowerShell, R, PHP, Dart, Haskell, Ruby, F#). This functionality is very useful if you want to deploy models into environments where you can’t install your normal Python stack to support model inference.
Video Demo:
☑️ Check Fairness
There are many approaches to conceptualizing fairness. This new function follows the approach known as group fairness, which asks: Which groups of individuals are at risk for experiencing harm. This function provides fairness-related metrics between different groups (also called subpopulations).
Video Demo:
📩 Create Web API
This function will create a POST API for the ML pipeline for inference using FastAPI framework. It only creates the API and doesn’t run it automatically.
Video Demo:
🚢 Create Docker
This function will create a Dockerfile
and requirements
file for your API end-point.
Video Demo:
💻 Create Web Application
This function creates a basic Gradio web app for inference. It will later be expanded for other app types such as Streamlit.
Video Demo:
🎰 Monitor Drift of ML Models
A new parameter called drift_report
is added to the predict_model
function that generates the drift report using Evidently AI framework. At the moment this functionality is in experimental mode and will only work on test data. Later on, it will be expanded for production use.
Video Demo:
🔨 Plot Model is now more configurable
plot_model
function is PyCaret is now more configurable. For example, previously if you wanted to see percentages in Confusion Matrix instead of absolute numbers, it wasn’t possible, or if you want to change the color map of visuals, it wasn’t possible. Now it is possible with the new parameter plot_kwargs
in the plot_model
function. See example:
🏆Optimize Threshold
This is not a new function but it was completely revamped in 2.3.6. This function is to optimize the probability threshold for binary classification problems. Previously you had to pass cost function as true_positive
, false_positive
, true_negative
, false_negative
in this function and now it automatically picks up all the metrics including the custom ones from your active experiment run.
📚 New Documentation
The biggest and hardest of all is the completely new documentation. This is a single source of truth for everything related to PyCaret, from official tutorials to release notes and from API ref to community contributions. Take a video tour:
Finally, if you want to take the tour of all new functionalities added in 2.3.6, watch this 10 minutes video:
To learn about all the other changes, bug fixes, and minor updates in PyCaret 2.3.6, check out the detailed release notes.
Thank you for reading.
🔗 Important Links
📚 Official Docs: The bible of PyCaret. Everything is here.
🌐 Official Web: Check out our official website
😺 GitHub Check out our Git
⭐ Tutorials New to PyCaret? Check out our official notebooks!
📋 Example Notebooks created by the community.
📙 Blog Tutorials and articles by contributors.
❓ FAQs Check out frequently asked questions.
📺 Video Tutorials Our video tutorial from various events.
📢 Discussions Have questions? Engage with community and contributors.
🛠️ Changelog Changes and version history.
🙌 User Group Join our Meetup user group.
Last updated