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

Get the complete API reference here.

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(...)

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: keras-toolkit-0.1.0rc5.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 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.0rc5.tar.gz
Algorithm Hash digest
SHA256 5e3ce2a76bf35a45daf6ff05fc63d463fd3968a6412e53c30ad6e05198807483
MD5 c5462e0bb00470c89d7150bf6eb6f3c6
BLAKE2b-256 84ab0ca879cc3a47aa990765ebfe146e2af56e043e9a91d5f90d1585ccb238f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: keras_toolkit-0.1.0rc5-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 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.0rc5-py3-none-any.whl
Algorithm Hash digest
SHA256 bdf09ff6e3f1b0d199fb386616ffebd2128b158b822352557958ae5511781405
MD5 b66c8651fcd470243619bb9e717f8e8d
BLAKE2b-256 7f83acd6a2905354ef34338de9e28044d295a90ffb7a44ca52e6e9fa3191f508

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