What is set config function in NLP in pycaret

This recipe explains the set config function in NLP in pycaret. The set config function resets the global variables.

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

PyCaret provides the set_config function in the NLP module.

This module is provided by the PyCaret python libraryPyCaret is an open-source, less-code machine learning python library. PyCaret automates machine learning workflow.  PyCaret library is wrapped around some machine learning libraries such as sklearn, XGBoost, LightGBM, CatBoost, spaCy, Optuna, Hyperopt, Ray, and many more.

Complete Guide to Tensorflow for Deep Learning with Python for Free

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

set_config function with Example:-

PyCaret provides "pycaret.anomaly.set_config()" function. The set_config function resets the global variables.

Accessible variables:-

text: Tokenized words as a list with length = # documents

data_: pandas.DataFrame containing text after all processing

corpus: List containing tuples of id to word mapping

id2word: gensim.corpora.dictionary.Dictionary

seed: random state set through session_id

target_: Name of column containing text. ‘en’ by default.

html_param: html_param configured through setup

exp_name_log: Name of experiment set through setup

logging_param: log_experiment param set through setup

log_plots_param: log_plots param set through setup

USI: Unique session ID parameter set through setup

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')
set_config('seed', 123)

What Users are saying..

profile image

Savvy Sahai

Data Science Intern, Capgemini
linkedin profile url

As a student looking to break into the field of data engineering and data science, one can get really confused as to which path to take. Very few ways to do it are Google, YouTube, etc. I was one of... Read More

Relevant Projects

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.

Deep Learning Project for Time Series Forecasting in Python
Deep Learning for Time Series Forecasting in Python -A Hands-On Approach to Build Deep Learning Models (MLP, CNN, LSTM, and a Hybrid Model CNN-LSTM) on Time Series Data.

Build CNN Image Classification Models for Real Time Prediction
Image Classification Project to build a CNN model in Python that can classify images into social security cards, driving licenses, and other key identity information.

Time Series Python Project using Greykite and Neural Prophet
In this time series project, you will forecast Walmart sales over time using the powerful, fast, and flexible time series forecasting library Greykite that helps automate time series problems.

Build a Logistic Regression Model in Python from Scratch
Regression project to implement logistic regression in python from scratch on streaming app data.

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.

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.

Skip Gram Model Python Implementation for Word Embeddings
Skip-Gram Model word2vec Example -Learn how to implement the skip gram algorithm in NLP for word embeddings on a set of documents.

GCP MLOps Project to Deploy ARIMA Model using uWSGI Flask
Build an end-to-end MLOps Pipeline to deploy a Time Series ARIMA Model on GCP using uWSGI and Flask

Learn to Build an End-to-End Machine Learning Pipeline - Part 2
In this Machine Learning Project, you will learn how to build an end-to-end machine learning pipeline for predicting truck delays, incorporating Hopsworks' feature store and Weights and Biases for model experimentation.