Skip to main content

Keras callback for playing a sound when training is complete.

Project description

Travis CI build SonarCloud Quality SonarCloud Maintainability Codacy Maintainability Maintainability 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

Tests Coverage

Since some software handling coverages sometimes get slightly different results, here’s three of them:

Coveralls Coverage SonarCloud Coverage Code Climate Coverate

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 Ding

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

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

from keras_ding import Ding

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

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

keras_ding-1.0.3.tar.gz (234.7 kB view details)

Uploaded Source

File details

Details for the file keras_ding-1.0.3.tar.gz.

File metadata

  • Download URL: keras_ding-1.0.3.tar.gz
  • Upload date:
  • Size: 234.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for keras_ding-1.0.3.tar.gz
Algorithm Hash digest
SHA256 d711c2fb7a260a2933910036063fb8981bb69002b66c3ebd5d0678fe7ee2a399
MD5 14aac4d280fb68adbe59b7a4cabd9fbf
BLAKE2b-256 10012caa290d80b012579084d454c433982acf90a57129a219d4bdf3c19a66b7

See more details on using hashes here.

Provenance

Supported by

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