Skip to content

ken11/keras_callback_slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 URL
  • token : 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

Screenshot from 2021-05-27 00-47-49


Screenshot from 2021-05-27 00-48-31

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages