Skip to main content
# 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

Metadata

Release files for kerasplugins 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kerasplugins 0.1.5
File Size Uploaded Provenance Actions
kerasplugins-0.1.5.tar.gz 3.8 kB Without provenance Details for kerasplugins-0.1.5.tar.gz

Release files / kerasplugins-0.1.5.tar.gz

Download URL kerasplugins-0.1.5.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ee219f8493bce53712fd97f33245cb01aa22175b1f0f1a4490997ab366a02200
BLAKE2b-256 checksum
How to use checksums
32b7a7d2eed0ca046b7cac373d1def33bc7d96dea810d6455c5c7373a4ac1e7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for kerasplugins 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page