Skip to main content

A collection of functions to help you easily train and run Tensorflow Keras

Project description

Keras Toolkit

A collection of functions to help you easily train and run Tensorflow Keras

Quickstart

Install the library:

pip install keras-toolkit

You can now use it:

import keras_toolkit as kt

# kt reduces the number of lines from ~100 to ~3
strategy = kt.accelerator.auto_select(verbose=True)
decoder = kt.image.build_decoder(with_labels=True, target_size=(300, 300))
dtrain = kt.image.build_dataset(paths, labels, bsize=BATCH_SIZE, decode_fn=decoder)

with strategy.scope():
    model = tf.keras.Sequential([...])
    model.compile(...)

model.fit(...)

API References

Get the complete API reference here.

Acknowledgement

The auto_select_accelerator was inspired by Martin Gorner's Kaggle notebook.

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-toolkit-0.1.0rc3.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.

keras_toolkit-0.1.0rc3-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file keras-toolkit-0.1.0rc3.tar.gz.

File metadata

  • Download URL: keras-toolkit-0.1.0rc3.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.0 importlib_metadata/3.7.3 packaging/20.9 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for keras-toolkit-0.1.0rc3.tar.gz
Algorithm Hash digest
SHA256 07d6e404dd167c60e671877934313789a4a40d7ada778c9c0a472e046e163fa0
MD5 3b88d41aa23ffc06c309c9ed8f1db513
BLAKE2b-256 4fecc29fbd64fb0ed186cf37ba0a3d3d9100c66bea06add844e1104a776dc3bd

See more details on using hashes here.

File details

Details for the file keras_toolkit-0.1.0rc3-py3-none-any.whl.

File metadata

  • Download URL: keras_toolkit-0.1.0rc3-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.0 importlib_metadata/3.7.3 packaging/20.9 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for keras_toolkit-0.1.0rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 22a2b875a647f785a4df1c752108064f77cd5493279186bbac02def603af00a6
MD5 4922959559f8c743337fafe542880cf6
BLAKE2b-256 ed7a9c1bbc19cc21bbbce25a24e4b04673ee3fc7838839e28ae5abeb40b1452b

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