Skip to main content

A UI based callback for tf-keras

Project description

Acknowledgement

This project is supported by Segmind

keras JukeBox

This is a UI based hyper-parameter controller, which let's you control the following.

  • start, pause and stop a live training.
  • reset the learning rate on dynamically while training is in progress.

more functionalities are to be added

Dependencies

This package depends on MQTT protocol for communication. So, it is expected that an MQTT broker is up and running in 'localhost' at port 1883(default port).

Install it by :


sudo apt-get update
sudo apt-get install mosquitto
sudo apt-get install mosquitto-clients

Python dependencies:

  • python >= 3.6.8
  • paho-mqtt
  • PyQt5
  • tensorflow >= 1.14

Note: This package is intended and tested for tensorflow-keras api and NOT keras with tensorflow 'backend'

Usage

import as


from keras_JukeBox import JukeBoxCallback

and pass it to the fit method of keras.model

as follows :


model.fit(train_images, train_labels, epochs=20, callbacks=[JukeBoxCallback(verbose=True)])

and run your training script. You will note that the script gets blocked, this is because it is waiting for a JukeBox UI to capture it's session. Now, in a separate terminal, type:


start_JukeBox

and you should see the UI pop up, note the algorithm is in pause mode by default. Hit the play button to start the training.

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_JukeBox-0.0.1.tar.gz (20.5 kB view hashes)

Uploaded Source

Built Distribution

Keras_JukeBox-0.0.1-py3.6.egg (37.5 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