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 hashes)

Uploaded Source

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