RemoteMonitor 类keras.callbacks.RemoteMonitor(
root="https://:9000",
path="/publish/epoch/end/",
field="data",
headers=None,
send_as_json=False,
)
用于向服务器发送事件流的回调。
需要 requests 库。默认情况下,事件发送到 root + '/publish/epoch/end/'。调用方式为 HTTP POST,其中 data 参数是事件数据的 JSON 编码字典。如果 send_as_json=True,请求的内容类型将为 "application/json"。否则,序列化的 JSON 将在表单中发送。
参数
root 的路径,事件将发送到此路径。send_as_json=False 时)。"application/json" 形式发送。