keras custom callback for slack
Project description
keras_callback_slack
keras custom callback for slack
Installation
$ pip install keras-callback-slack
Usage
from keras_callback_slack import SlackNotifications
slack_notification = SlackNotifications(
'WEBHOOK_URL', token='TOKEN', channel='CHANNEL', attachment_image=True)
model.fit(x, y, batch_size=64, epochs=5, callbacks=[slack_notification])
Arguments
url
: string - Slack Incoming Webhook URLtoken
: string(Optional) - Slack bot token
This will be needed when uploading the graph.channel
: string(Optional) - Slack channel ID
The ID of the channel to which you want to upload the graph. Specify the same channel as the webhook.loss_metrics
: list(Optional) - Loss metrics you want to monitor.
ex.['loss', 'val_loss']
acc_metrics
: list(Optional) - Acc metrics you want to monitor.
ex.['acc', 'val_acc']
attachment_image
: bool(Optional) - Whether to upload the graph.period
: int(Optional) - Notification interval (epochs).
Example
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for keras_callback_slack-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41d98079faed599ba388208c4c402ae33158a93f964922e254079fc26be0892b |
|
MD5 | d69db4d684535149ddb7ac417127df44 |
|
BLAKE2b-256 | b046ec67c6f809e4051c91af55f48892ed1af427d87c122798241b42ec7c0dfb |