Skip to main content

A Keras Callback that uploads your Tensorboard logs to a Cloud Bucket

Project description

Keras Bucket Tensorboard Callback

License: MIT PyPI version Maintainability Test Coverage

A Keras Callback that uploads your Tensorboard logs to a Cloud Bucket

Currently, only Google Cloud Platform Storage is supported. Very little effort is needed to support AWS S3, so feel free to contribute to this project.

Installation

pip install keras-bucket-tensorboard-callback

Basic usage

The following example trains uploads the Tensorboard logs to you GCP Storage bucket my-bucket, inside the directory any_dir:

# Import the class
from keras_bucket_tensorboard_callback import BucketTensorBoard

# Create the callback instance, passing the bucket URI
bucket_callback = BucketTensorBoard('gs://my-bucket/any_dir')

# Train the model with the callback
model.fit(
    x=X,
    y=Y,
    epochs=20,
    callbacks=[bucket_callback]
)

Make sure you have access to the provided bucket. For GCP, you should have the GOOGLE_APPLICATION_CREDENTIALS env set, pointing to your json key file.

Viewing the results on TensorBoard

With tensorboard installed your environment, run:

tensorboard --logdir=gs://my-bucket/any_dir

The TensorBoard will show your metrics and graphs saved on the bucket.

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

keras-bucket-tensorboard-callback-1.0.4.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file keras-bucket-tensorboard-callback-1.0.4.tar.gz.

File metadata

  • Download URL: keras-bucket-tensorboard-callback-1.0.4.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for keras-bucket-tensorboard-callback-1.0.4.tar.gz
Algorithm Hash digest
SHA256 cd89301c6c31f9fe9d93cff19930f1e9db55802306ffb523c43983b02a19c4c5
MD5 a801b7602207e80ad77d963c0e786a7b
BLAKE2b-256 3398c138b0e3f669c3cf37a55d9da3a53de66fe10628cc69aa2e892dace4e923

See more details on using hashes here.

File details

Details for the file keras_bucket_tensorboard_callback-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: keras_bucket_tensorboard_callback-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for keras_bucket_tensorboard_callback-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c83e64433c11ead71bfdb37e28e1e0aa60cf638ae3e29fafcc13d9d9f0ce0147
MD5 57f56fef8daccace572f00bdd4aa6965
BLAKE2b-256 08adf6b17022f28046036e4fe322a208b0f7d23d2a0439eada336fc975c6961c

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