Tianyi Zheng
ae0fc85401
Fix ruff errors ( #8936 )
...
* Fix ruff errors
Renamed neural_network/input_data.py to neural_network/input_data.py_tf
because it should be left out of the directory for the following
reasons:
1. Its sole purpose is to be used by neural_network/gan.py_tf, which is
itself left out of the directory because of issues with TensorFlow.
2. It was taken directly from TensorFlow's codebase and is actually
already deprecated. If/when neural_network/gan.py_tf is eventually
re-added back to the directory, its implementation should be changed
to not use neural_network/input_data.py anyway.
* updating DIRECTORY.md
* Change input_data.py_tf file extension
Change input_data.py_tf file extension because algorithms-keeper bot is being picky about it
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-08-09 13:25:30 +05:30
Rohan R Bharadwaj
46842e8c5b
Add missing type hints in matrix
directory ( #6612 )
...
* Update count_islands_in_matrix.py
* Update matrix_class.py
* Update matrix_operation.py
* Update nth_fibonacci_using_matrix_exponentiation.py
* Update searching_in_sorted_matrix.py
* Update count_islands_in_matrix.py
* Update matrix_class.py
* Update matrix_operation.py
* Update rotate_matrix.py
* Update sherman_morrison.py
* Update spiral_print.py
* Update count_islands_in_matrix.py
* formatting
* formatting
* Update matrix_class.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-04 20:05:56 +02:00
Christian Clauss
cecf43d648
Pyupgrade to Python 3.9 ( #4718 )
...
* Pyupgrade to Python 3.9
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-09-07 13:37:03 +02:00
Christian Clauss
9200a2e543
from __future__ import annotations ( #2464 )
...
* from __future__ import annotations
* fixup! from __future__ import annotations
* fixup! from __future__ import annotations
* fixup! Format Python code with psf/black push
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-09-23 13:30:13 +02:00
vinayak
70cf565387
black ( #2166 )
...
* black
* Update matrix/matrix_operation.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update matrix/matrix_operation.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update matrix/matrix_operation.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update matrix/matrix_operation.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* flake8 error fix
* Remove unreachable code
* union
Co-authored-by: Christian Clauss <cclauss@me.com>
2020-07-04 13:22:21 +05:30
wuyudi
f70a0a2980
Update matrix_operation.py ( #2159 )
...
* Update matrix_operation.py
* Update matrix_operation.py
* Update matrix_operation.py
* use yapf to format the code
* recover the error check
* add typing hint
* Update matrix/matrix_operation.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update matrix/matrix_operation.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update matrix/matrix_operation.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update matrix/matrix_operation.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* add float doctest
* black formated
* Update searching_in_sorted_matrix.py
* recover this file
* f-string, typing hint , doctest
* Update matrix_operation.py
* Update searching_in_sorted_matrix.py
* Update matrix_operation.py
* Update matrix/matrix_operation.py
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: vinayak <itssvinayak@gmail.com>
2020-07-04 00:58:16 +05:30
Christian Clauss
28419cf839
pyupgrade --py37-plus **/*.py ( #1654 )
...
* pyupgrade --py37-plus **/*.py
* fixup! Format Python code with psf/black push
2020-01-03 22:25:36 +08:00
William Zhang
9eac17a408
psf/black code formatting ( #1277 )
2019-10-05 10:14:13 +05:00
Ishani
d27968b78d
Create Searching in sorted matrix ( #738 )
...
* Create Searching in sorted matrix
* Rename Searching in sorted matrix to searching_in_sorted_matrix.py
2019-03-20 23:59:35 +08:00