Execution Time
prov4ml.log_current_execution_time(
label: str,
context: Context,
step: Optional[int] = None
)
Parameter | Type | Description |
---|---|---|
label | string | Required. Label of the code portion |
context | prov4ml.Context | Required. Context of the metric |
step | int | Optional. Step of the metric |
The log_current_execution_time
function logs the current execution time of the code portion specified by the label.
The log_execution_start_time
function logs the start time of the current execution.
It is automatically called at the beginning of the experiment.
Example:
prov4ml.log_execution_start_time()
# run training process or other very important tasks...
prov4ml.log_execution_end_time()
The log_execution_end_time function logs the end time of the current execution. It is automatically called at the end of the experiment.