MCPcopy
hub / github.com/FedML-AI/FedML / event

Function event

python/fedml/core/mlops/__init__.py:153–167  ·  view source on GitHub ↗
(event_name, event_started=True, event_value=None, event_edge_id=None)

Source from the content-addressed store, hash-verified

151
152
153def event(event_name, event_started=True, event_value=None, event_edge_id=None):
154 if not mlops_enabled(MLOpsStore.mlops_args):
155 return
156
157 set_realtime_params()
158
159 if not MLOpsStore.mlops_bind_result:
160 return
161
162 setup_log_mqtt_mgr()
163
164 if event_started:
165 MLOpsStore.mlops_event.log_event_started(event_name, event_value, event_edge_id)
166 else:
167 MLOpsStore.mlops_event.log_event_ended(event_name, event_value, event_edge_id)
168
169
170def log(metrics: dict, step: int = None, customized_step_key: str = None, commit: bool = True):

Callers

nothing calls this directly

Calls 5

mlops_enabledFunction · 0.85
set_realtime_paramsFunction · 0.85
setup_log_mqtt_mgrFunction · 0.85
log_event_startedMethod · 0.80
log_event_endedMethod · 0.80

Tested by

no test coverage detected