New Function

This is a new function introduced in PyCaret 2.0x. 

Get Logs

Returns a table with experiment logs consisting run details, parameter, metrics and tags.

It returns the logs for active experiment when log_experiment in setup is set as True. To retrieve logs for inactive experiment, use experiment_name parameter with get_logs. To save csv file locally, set save parameter as True.




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

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

# compare baseline
top5 = compare_models()

# checkout logs in csv
logs = get_logs(save=True) # To save csv in working directory



Try this next