Skip to main content

tf-notify

PyPI PyPI - Python Version TensorFlow version codecov Code style: black GitHub Workflow Status Documentation Status PyPI - Wheel

Want to get notified on the progress of your TensorFlow model training?

This package provides a tf.keras callback to send notifications to a messaging app of your choice.

Install

The recommended installation is via pip:

pip install tf-notify

Supported Apps

The following apps are currently supported. But, do check the project frequently, as many more will soon be supported!

Slack Telegram Email (SMTP)

Usage

import tensorflow as tf
from tf_notify import SlackCallback


# define the tf.keras model to add callbacks to
model = tf.keras.Sequential(name='neural-network')
model.add(tf.keras.layers.Dense(1, input_dim=784))
model.compile(
    optimizer=tf.keras.optimizers.RMSprop(learning_rate=0.1),
    loss="mean_squared_error",
    metrics=["mean_absolute_error"],
)

model.fit(
    x_train,
    y_train,
    batch_size=128,
    epochs=2,
    verbose=0,
    validation_split=0.5,
    callbacks=[
        SlackCallback(webhook_url='https://url.to/webhook')
    ],  # send a Slack notification when training ends!
)

You should see something like this on your Slack:

How to contribute

If you wish to contribute, this is a great place to start!

License

Distributed under the Apache-2.0 license.

Metadata

Release files for tf-notify 0.3.0

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

Source distribution (sdist)

Source distribution for tf-notify 0.3.0
File Size Uploaded Provenance
tf-notify-0.3.0.tar.gz 9.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for tf-notify 0.3.0
File Interpreter ABI Platform
tf_notify-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.6 kB

Release files / tf-notify-0.3.0.tar.gz

Download URL tf-notify-0.3.0.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0712f2414b9e0f7b089f99ff9b3e0e7378623f2c5bec7e2f3618a20d64b744fa
BLAKE2b-256 checksum
How to use checksums
a43546a394c3409c4e9b0481ae5398d2afaa81163b97897f1fc155795dd56178
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.14 CPython/3.9.13 Linux/5.15.0-1014-azure

Release files / tf_notify-0.3.0-py3-none-any.whl

Download URL tf_notify-0.3.0-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8396ee9f4de0bf3c9bd2a49eefa493de1bc060dba71a3a2e5f838f5a1cbe9da4
BLAKE2b-256 checksum
How to use checksums
1d2a0217dbad2bb51745ed11f7001a3e8b6bd1efe12eae5c97e31882d7cebc14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.14 CPython/3.9.13 Linux/5.15.0-1014-azure

Security for tf-notify 0.3.0

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