Python package collecting commonly used snippets for the Keras library.
Project description
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.