New Function

This is a new function introduced in PyCaret 2.0x. 

Pull


Returns last printed score grid as pandas dataframe.

This function is only available in pycaret.classification and pycaret.regression 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 varible')

# compare baseline models
best_model = compare_models()

# pull the score grid of compare_models as a dataframe
best_model_results = pull()

 

Output

Try this next


 

Was this page helpful?

GitHub

Send feedback