Skip to main content

Keras Plugins

Project description

# keras-plugins

## Callbacks

### Telegram Callback

Notify levels available:
1) on_train_begin,
2) on_train_end,
3) on_batch_begin,
4) on_batch_end,
5) on_epoch_begin,
6) on_epoch_end

##### How to use
##### Installation
```
pip install kerasplugins
```

```python
from kerasplugins import callbacks

#Notify can either be a list, dict or set
notify = {
'on_batch_end', # sends BATCH END: Loss 0.50 Accuracy: 0.75
'on_epoch_end' # sends EPOCH END: Loss 0.43 Accuracy: 0.81
}

# msg is the initial message
msg = "Predicting Bitcoin Price"

telegram = callbacks.TelegramNotify(<token>, <chat_id>, msg=msg, notify=notify)

# channel is "#general" by default
slack = callbacks.SlackNotify(<slack_token>, <channel>, msg=msg, notify=notify)

model.fit(X_train, Y_train, validation_data=[X_test, Y_test], batch_size=256, epochs=10, callbacks=[telegram, slack])
```

## Coming Soon
1) Ability to stop training remotely

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kerasplugins-0.1.5.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file kerasplugins-0.1.5.tar.gz.

File metadata

  • Download URL: kerasplugins-0.1.5.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for kerasplugins-0.1.5.tar.gz
Algorithm Hash digest
SHA256 ee219f8493bce53712fd97f33245cb01aa22175b1f0f1a4490997ab366a02200
MD5 1405f31c64a8194e9882079bcfedd128
BLAKE2b-256 32b7a7d2eed0ca046b7cac373d1def33bc7d96dea810d6455c5c7373a4ac1e7f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page