Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lucacappelletti94/keras_ding
Keras callback for playing a sound when training is complete.
https://github.com/lucacappelletti94/keras_ding
Last synced: 9 days ago
JSON representation
Keras callback for playing a sound when training is complete.
- Host: GitHub
- URL: https://github.com/lucacappelletti94/keras_ding
- Owner: LucaCappelletti94
- License: mit
- Created: 2019-10-13T08:23:44.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-08-25T15:15:11.000Z (about 2 years ago)
- Last Synced: 2024-10-13T13:58:31.095Z (23 days ago)
- Language: Python
- Size: 10.2 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Keras Ding
=========================================================================================
|pip| |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:.. code:: shell
sudo apt install python3-dev
sudo apt install libasound2-devFinally as usual, just download it using pip:
.. code:: shell
pip install keras_ding
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:.. code:: python
from keras_ding import KerasDing
my_keras_model.fit(
x, y,
callbacks=[
KerasDing()
]
)What abount a custom sound? Just pass it as an argument.
.. code:: python
from keras_ding import KerasDing
my_keras_model.fit(
x, y,
callbacks=[
KerasDing(path="my_custom_sound.mp3")
]
).. |pip| image:: https://badge.fury.io/py/keras-ding.svg
:target: https://badge.fury.io/py/keras-ding
:alt: Pypi project.. |downloads| image:: https://pepy.tech/badge/keras-ding
:target: https://pepy.tech/badge/keras-ding
:alt: Pypi total project downloads