New Function

This is a new function introduced in PyCaret 2.0x. 

Get Config


This function is used to access global environment variables.

See what global variables are accessible by modules:

 

Example

 

Code
# loading dataset
from pycaret.datasets import get_data
data = get_data('diabetes')

# initializing setup
from pycaret.classification import *
clf1 = setup(data, target = 'Class variable')

# get X_train variable after preprocessing
X_train = get_config('X_train')

 

Output

Try this next


 

Was this page helpful?

GitHub

Send feedback