extra-keras-utils-1.0.4
توضیحات
Python package collecting commonly used snippets for the Keras library.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | extra-keras-utils-1.0.4 |
| نام | extra-keras-utils |
| نسخه کتابخانه | 1.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Luca Cappelletti |
| ایمیل نویسنده | cappelletti.luca94@gmail.com |
| آدرس صفحه اصلی | https://github.com/LucaCappelletti94/extra_keras_utils |
| آدرس اینترنتی | https://pypi.org/project/extra-keras-utils/ |
| مجوز | MIT |
extra_keras_utils
=========================================================================================
|travis| |sonar_quality| |sonar_maintainability| |codacy| |code_climate_maintainability| |pip| |downloads|
Python package collecting commonly used snippets for the Keras library.
How do I install this package?
----------------------------------------------
As usual, just download it using pip:
.. code:: shell
pip install extra_keras_utils
Tests Coverage
----------------------------------------------
Since some software handling coverages sometime get slightly different results, here's three of them:
|coveralls| |sonar_coverage| |code_climate_coverage|
is_gpu_available
--------------------------------------
Method that returns a boolean if a GPU is detected or not.
.. code:: python
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.
.. code:: python
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.
.. code:: python
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.
.. |travis| image:: https://travis-ci.org/LucaCappelletti94/extra_keras_utils.png
:target: https://travis-ci.org/LucaCappelletti94/extra_keras_utils
:alt: Travis CI build
.. |sonar_quality| image:: https://sonarcloud.io/api/project_badges/measure?project=LucaCappelletti94_extra_keras_utils&metric=alert_status
:target: https://sonarcloud.io/dashboard/index/LucaCappelletti94_extra_keras_utils
:alt: SonarCloud Quality
.. |sonar_maintainability| image:: https://sonarcloud.io/api/project_badges/measure?project=LucaCappelletti94_extra_keras_utils&metric=sqale_rating
:target: https://sonarcloud.io/dashboard/index/LucaCappelletti94_extra_keras_utils
:alt: SonarCloud Maintainability
.. |sonar_coverage| image:: https://sonarcloud.io/api/project_badges/measure?project=LucaCappelletti94_extra_keras_utils&metric=coverage
:target: https://sonarcloud.io/dashboard/index/LucaCappelletti94_extra_keras_utils
:alt: SonarCloud Coverage
.. |coveralls| image:: https://coveralls.io/repos/github/LucaCappelletti94/extra_keras_utils/badge.svg?branch=master
:target: https://coveralls.io/github/LucaCappelletti94/extra_keras_utils?branch=master
:alt: Coveralls Coverage
.. |pip| image:: https://badge.fury.io/py/extra-keras-utils.svg
:target: https://badge.fury.io/py/extra-keras-utils
:alt: Pypi project
.. |downloads| image:: https://pepy.tech/badge/extra-keras-utils
:target: https://pepy.tech/badge/extra-keras-utils
:alt: Pypi total project downloads
.. |codacy| image:: https://api.codacy.com/project/badge/Grade/cfef06c9def842369ce3a6ef9ea12a51
:target: https://www.codacy.com/app/LucaCappelletti94/extra_keras_utils?utm_source=github.com&utm_medium=referral&utm_content=LucaCappelletti94/extra_keras_utils&utm_campaign=Badge_Grade
:alt: Codacy Maintainability
.. |code_climate_maintainability| image:: https://api.codeclimate.com/v1/badges/eb5c1a23d890b8da6cd5/maintainability
:target: https://codeclimate.com/github/LucaCappelletti94/extra_keras_utils/maintainability
:alt: Maintainability
.. |code_climate_coverage| image:: https://api.codeclimate.com/v1/badges/eb5c1a23d890b8da6cd5/test_coverage
:target: https://codeclimate.com/github/LucaCappelletti94/extra_keras_utils/test_coverage
:alt: Code Climate Coverate
نحوه نصب
نصب پکیج whl extra-keras-utils-1.0.4:
pip install extra-keras-utils-1.0.4.whl
نصب پکیج tar.gz extra-keras-utils-1.0.4:
pip install extra-keras-utils-1.0.4.tar.gz