Skip to main content

Keras Ding

Pypi project Pypi total project downloads

Keras callback for playing a sound when training is complete. The callbacks additionally works also within jupyter notebook, so that if you are working on a notebook on a remote machine it plays the audio within your browser and not in the server.

How do I install this package?

You will need a couple packages that you might not already have installed:

sudo apt install python3-dev
sudo apt install libasound2-dev

Finally as usual, just download it using pip:

pip install keras_ding

Usage examples

So suppose you have your Keras model my_keras_model and you want to hear a sound when it is done training. Here you go:

from keras_ding import KerasDing

my_keras_model.fit(
    x, y,
    callbacks=[
        KerasDing()
    ]
)

What abount a custom sound? Just pass it as an argument.

from keras_ding import KerasDing

my_keras_model.fit(
    x, y,
    callbacks=[
        KerasDing(path="my_custom_sound.mp3")
    ]
)

Metadata

Release files for keras-ding 1.0.6

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

Source distribution (sdist)

Source distribution for keras-ding 1.0.6
File Size Uploaded Provenance Actions
keras_ding-1.0.6.tar.gz 1.6 MB Without provenance Details for keras_ding-1.0.6.tar.gz

Release files / keras_ding-1.0.6.tar.gz

Download URL keras_ding-1.0.6.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
0d07c6956def16aaac0adc8ce72bbbfdaed70950d1c4e35e830eefae49109ce1
BLAKE2b-256 checksum
How to use checksums
45161085b1df193d08750ff90b063305f39d9d6723ea87b2ff7f522c31a3858e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.9

Security for keras-ding 1.0.6

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