Skip to main content

Simple integration of keras-tuner (hyperparameter tuning) and tensorboard dashboard (interactive visualization).

Project description

Keras-tuner Tensorboard logger

keras-tuner logger for streaming search report to Tensorboard plugins Hparams, beautiful interactive visualization tool.

Requirements

  • Python 3.6+
  • keras-tuner 1.0.0+
  • Tensorboard 2.1+

Example

simple and incomplete code is introduced.

See details about how to use keras-tuner in here.

Add only one argument in tuner class and search it, then you can go to see search report in Tensorboard.

# import this
from kerastuner_tensorboard_logger import TensorBoardLogger

tuner = Hyperband(
    build_model,
    objective="val_acc",
    max_epochs=5,
    directory="logs/tuner",
    project_name="tf_test",
    logger=TensorBoardLogger(
        metrics=["val_acc"], logdir="logs/hparams"
    ),  # add only this argument
)

tuner.search(x, y, epochs=5, validation_data=(val_x, val_y))

Tensorboard

$ tensorboard --logdir ./logs/hparams

Go to http://127.0.0.1:6006.

You will see the interactive visualization (provided by Tensorboard).

Table View

Parallel Coordinates View

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

kerastuner-tensorboard-logger-0.1.0.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

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