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

Uploaded Python 3

File details

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

File metadata

  • Download URL: keras-toolkit-0.1.0rc1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.3

File hashes

Hashes for keras-toolkit-0.1.0rc1.tar.gz
Algorithm Hash digest
SHA256 2039abd828604086a07553c95aa32b29c3b55596d31127d3003b7b048c3449e1
MD5 48abab8f12fb288936a3f66407c65437
BLAKE2b-256 d4f91de3a9a26800298e0d13261ba0f17fb5bf90d9bd6e6610420ecec47868cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: keras_toolkit-0.1.0rc1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.3

File hashes

Hashes for keras_toolkit-0.1.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 df0e010ef2de21f93cd5a542bdd8f9bef210c9b9f3e8020597bfe8ba14604438
MD5 55ac0829b58590def541c97bb9e0eeb1
BLAKE2b-256 02d39d25caa841dfd57ca36e0cb62a3f3dd6487cc249dbce6b7135a401cf904a

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