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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kerastuner_tensorboard_logger-0.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kerastuner-tensorboard-logger-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0 CPython/3.7.9 Linux/5.4.0-1025-azure

File hashes

Hashes for kerastuner-tensorboard-logger-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d9effb47aaaa9d299db97705383ddd8c4e263ba7caef9759f230d4a076d82623
MD5 d75c4573cae18c971c85b541d251c4b0
BLAKE2b-256 4144d8ae62707a84bb7630860b725fc89896ae5ce5cd3d410303aec574b837a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kerastuner_tensorboard_logger-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d2cc4edcd5a467830b71d5e57c08b2e032476238731e026ca6c42cc15922ad32
MD5 5f97bb352f4c4d090d41f1e30fdc5ee6
BLAKE2b-256 4cec4c9ff4e3d8a782f4e4056c172158fa8039ec5c5fb8b06424475e17781cf2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page