Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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!")

is_multi_gpu

Method that returns a boolean if more than one GPU is detected.

from extra_keras_utils import is_multi_gpu

if is_multi_gpu():
    print("More than one GPU is available!")

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.

Files for extra-keras-utils, version 1.0.4
Filename, size File type Python version Upload date Hashes
Filename, size extra_keras_utils-1.0.4.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page