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.data.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.0rc2.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.0rc2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: keras-toolkit-0.1.0rc2.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.0rc2.tar.gz
Algorithm Hash digest
SHA256 8106ed86fda6b5070362fb692ae92863ce9de31f8e2a22ee15d01b8dd1a4b386
MD5 b19a05f6ce40a41a693510223fe48635
BLAKE2b-256 d7066cbc616f14c12876bc5fecc533beccb7e51a23e13033ad40a12ef7062ee4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: keras_toolkit-0.1.0rc2-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.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 d5434225030649976812e495f6aedff3568a6a02dee40c9f14346e59cee2af93
MD5 ea893008d502d4efe5e87106c6a165b0
BLAKE2b-256 53842654dc98b537c10cd6e373d30eb5d4d1b2e48a0d627d97197a45a15dc5d9

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