Keras callback for playing a sound when training is complete.
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
Since some software handling coverages sometimes get slightly different results, here’s three of them:
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") ] )
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size keras_ding-1.0.4.tar.gz (1.6 MB)||File type Source||Python version None||Upload date||Hashes View|