Skip to main content

available_callbacks

available_callbacks()

The callbacks you can name under callbacks. The same set for every task.

What they may WATCH is not the same set, which this docstring implied and pyplatypus#358 paid for. Every task accepts every callback here, and each model’s monitorable decides which quantities its monitor and when may name: a segmentation epoch reports foreground and a classification or detection epoch does not, so terminate_on_collapse - whose default monitor is val_foreground - is listed here and refused by both of those. Ask the model rather than this listing before writing a monitor.

Returns

Name Type Description
list[dict[str, Any]] One row per callback: the name, the arguments it accepts, and what it is for.

next(row for row in available_callbacks() if row[“name”] == “early_stopping”)[“arguments”] (‘monitor’, ‘patience’, ‘min_delta’, ‘restore_best’, ‘start’, ‘start_epoch’)