Skip to main content

Python package collecting commonly used snippets for the Keras library.

Project description

travis sonar_quality sonar_maintainability sonar_coverage Maintainability pip

Python package collecting commonly used snippets for the Keras library.

How do I get this package?

As usual, just instal it using pip:

pip install extra_keras_utils

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.0.tar.gz (3.2 kB view hashes)

Uploaded Source

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