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.

How do I install this package?

As usual, just download it using pip:

pip install keras_ding

The callback is based upon the python package playsound, which required a little additional setup for getting it started. Do check out its documentation to get started.

On macOS it boils down to installing pyobjc, as follows:

pip install pyobjc

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.2.tar.gz (234.7 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: keras_ding-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 5a861094553f94c54400ed9df14704100b6f5d388349d8ba40398a0856780b37
MD5 68fc2c6b6a8c89c1b8e7c6fc0a13e331
BLAKE2b-256 502bbf6220d60aa71184b5d607df898271abf57f2cce3c851852b4f839dcbd78

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