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 sometime 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 acount 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.0.tar.gz (785.9 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: keras_ding-1.0.0.tar.gz
  • Upload date:
  • Size: 785.9 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.0.tar.gz
Algorithm Hash digest
SHA256 973a7c30b1aa14c18b8f46ef49e511e33952f9d12afc5d79fdd88c4d1fbe13e3
MD5 5e1bada0eeff987938706ac0e830ccef
BLAKE2b-256 6443724f8949ad3e0e7ee230c82a6feab2bf3c9b5be98d226e08378eeef14cbe

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