Edit on GitHub

Live.end()

Signals that the current experiment has ended.

def end():

Usage

Live.end() gets automatically called when exiting the context manager:

from dvclive import Live

with Live() as live:
    pass
# live.end() has been called at this point

It is also called when the training ends for each of the supported ML Frameworks

from dvclive.keras import DVCLiveCallback

...

model.fit(
    train_dataset, epochs=num_epochs, validation_data=validation_dataset,
    callbacks=[DVCLiveCallback()])
# live.end() has been called at this point

Description

By default, Live.end() will call Live.make_summary() and Live.make_report().

If save_dvc_exp=True has been passed to Live, it will save a new DVC experiment and write a dvc.yaml file configuring what DVC will show for logged plots, metrics, and parameters.

Content

🐛 Found an issue? Let us know! Or fix it:

Edit on GitHub

Have a question? Join our chat, we will help you:

Discord Chat