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+
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).
Metadata
Release files for kerastuner-tensorboard-logger 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kerastuner-tensorboard-logger-0.2.3.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kerastuner_tensorboard_logger-0.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.1 kB
Release files / kerastuner-tensorboard-logger-0.2.3.tar.gz
| Download URL | kerastuner-tensorboard-logger-0.2.3.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
54acc205eeb611558ce878a72692d3574915b0a10c992bc5f9de311438f90ea5
|
|
BLAKE2b-256 checksum How to use checksums |
4881177f40f2e35434eacf289453527c945650e7487920534c7ee04913c8744b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.0 CPython/3.7.9 Linux/5.4.0-1026-azure
|
Release files / kerastuner_tensorboard_logger-0.2.3-py3-none-any.whl
| Download URL | kerastuner_tensorboard_logger-0.2.3-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
156acdba8b813ffbaafaf0e8e3d8d018c6b9a4f733a85f913a2b1b8b695d2e83
|
|
BLAKE2b-256 checksum How to use checksums |
a18f61a425a131b2cb9423d71066ca9ef1065f214b5473d8637f677ebdceacaa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.0 CPython/3.7.9 Linux/5.4.0-1026-azure
|