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 = {
'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)
model.fit(X_train, Y_train, validation_data=[X_test, Y_test], batch_size=256, epochs=10, callbacks=[telegram])
```
## Coming Soon
1) Slack Notifier
2) Ability to stop training remotely
3) Simple Keras Server
## 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 = {
'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)
model.fit(X_train, Y_train, validation_data=[X_test, Y_test], batch_size=256, epochs=10, callbacks=[telegram])
```
## Coming Soon
1) Slack Notifier
2) Ability to stop training remotely
3) Simple Keras Server
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.3.tar.gz
(3.5 kB
view details)
File details
Details for the file kerasplugins-0.1.3.tar.gz
.
File metadata
- Download URL: kerasplugins-0.1.3.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bed1bf8f24e9143b17586465494359d778495b197325b0f401535e959681a17 |
|
MD5 | baf8e36fe301570872a3d6536a455824 |
|
BLAKE2b-256 | 3271c864f043ac99b34d6470f559b3b86a641fc96cded095ded488778ae8b603 |