Skip to main content

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

Project description

Keras-tuner Tensorboard logger

PyPI version

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+

Installation

$ pip install kerastuner-tensorboard-logger

Example

here is simple (and incomplete) code.

See details about how to use keras-tuner here.

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

Optionally, you can call setup_tb to be more accurate TensorBoard visualization. It convert keras-tuner hyperparameter information and do Tensorboard experimental setup.

# import this
from kerastuner_tensorboard_logger import (
    TensorBoardLogger,
    setup_tb  # Optional
)

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
)

setup_tb(tuner)  # (Optional) For more accurate visualization.
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.2.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file kerastuner-tensorboard-logger-0.2.2.tar.gz.

File metadata

File hashes

Hashes for kerastuner-tensorboard-logger-0.2.2.tar.gz
Algorithm Hash digest
SHA256 e4b2b7cba4682d99e651e496c5cabe9e47e636b36cbdfa5e767f30cd45e7208b
MD5 b0a6fbd01ba5a95a98f9a7513ad26d31
BLAKE2b-256 f018289567a3bbc916d7fe7b281f76af814d13d22f9b7b66a6671e0e2a9cd60f

See more details on using hashes here.

File details

Details for the file kerastuner_tensorboard_logger-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for kerastuner_tensorboard_logger-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f0e53f4d9d1c0d6d2ea987e11b310734edf2503ec2f2071eef418d2f79e6e458
MD5 46ee48063336d103b5c879c74aa35def
BLAKE2b-256 4e5a25f84e92ba958a937c7aa932bcd8f4f74b8a38b7dc4392123d0953c42a39

See more details on using hashes here.

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