Skip to main content

Python package collecting commonly used snippets for the Keras library.

Project description

Travis CI build SonarCloud Quality SonarCloud Maintainability Codacy Maintainability Maintainability Pypi project Pypi total project downloads

Python package collecting commonly used snippets for the Keras library.

How do I install this package?

As usual, just download it using pip:

pip install extra_keras_utils

Tests Coverage

Since some software handling coverages sometime get slightly different results, here’s three of them:

Coveralls Coverage SonarCloud Coverage Code Climate Coverate

is_gpu_available

Method that returns a boolean if a GPU is detected or not.

from extra_keras_utils import is_gpu_available

if is_gpu_available():
    print("Using gpu!")

set_seed

Method to get reproducible results.

from extra_keras_utils import set_seed

set_seed(42) # set as seed 42, the results are nearly reproducible.
set_seed(42, kill_parallelism=true) # set as seed 42, the results are fully reproducible.

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

extra_keras_utils-1.0.2.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file extra_keras_utils-1.0.2.tar.gz.

File metadata

  • Download URL: extra_keras_utils-1.0.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.13.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for extra_keras_utils-1.0.2.tar.gz
Algorithm Hash digest
SHA256 daf12a8fa4caac2bb3f938885c215f678af42f8ebd9161902d64ff55b2c85689
MD5 ece43995d6eea712df057c5c0850413f
BLAKE2b-256 c664aaa2302b44040ed4229691fe6f52973851b07798465800c959c3792efadf

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page