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).
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9effb47aaaa9d299db97705383ddd8c4e263ba7caef9759f230d4a076d82623
|
|
| MD5 |
d75c4573cae18c971c85b541d251c4b0
|
|
| BLAKE2b-256 |
4144d8ae62707a84bb7630860b725fc89896ae5ce5cd3d410303aec574b837a1
|
File details
Details for the file kerastuner_tensorboard_logger-0.1.0-py3-none-any.whl.
File metadata
- Download URL: kerastuner_tensorboard_logger-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0 CPython/3.7.9 Linux/5.4.0-1025-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2cc4edcd5a467830b71d5e57c08b2e032476238731e026ca6c42cc15922ad32
|
|
| MD5 |
5f97bb352f4c4d090d41f1e30fdc5ee6
|
|
| BLAKE2b-256 |
4cec4c9ff4e3d8a782f4e4056c172158fa8039ec5c5fb8b06424475e17781cf2
|