Skip to content

Commit dbfa218

Browse files
[pre-commit.ci] pre-commit autoupdate (TheAlgorithms#11380)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.3.7 → v0.4.1](astral-sh/ruff-pre-commit@v0.3.7...v0.4.1) - [github.com/tox-dev/pyproject-fmt: 1.7.0 → 1.8.0](tox-dev/pyproject-fmt@1.7.0...1.8.0) * from keras import layers, models * Update lstm_prediction.py --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Christian Clauss <[email protected]>
1 parent 2702bf9 commit dbfa218

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repos:
1616
- id: auto-walrus
1717

1818
- repo: https://github.com/astral-sh/ruff-pre-commit
19-
rev: v0.3.7
19+
rev: v0.4.1
2020
hooks:
2121
- id: ruff
2222
- id: ruff-format
@@ -29,7 +29,7 @@ repos:
2929
- tomli
3030

3131
- repo: https://github.com/tox-dev/pyproject-fmt
32-
rev: "1.7.0"
32+
rev: "1.8.0"
3333
hooks:
3434
- id: pyproject-fmt
3535

computer_vision/cnn_classification.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
# Importing the Keras libraries and packages
2727
import tensorflow as tf
28-
from tensorflow.keras import layers, models
28+
from keras import layers, models
2929

3030
if __name__ == "__main__":
3131
# Initialising the CNN

machine_learning/lstm/lstm_prediction.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
import numpy as np
99
import pandas as pd
10+
from keras.layers import LSTM, Dense
11+
from keras.models import Sequential
1012
from sklearn.preprocessing import MinMaxScaler
11-
from tensorflow.keras.layers import LSTM, Dense
12-
from tensorflow.keras.models import Sequential
1313

1414
if __name__ == "__main__":
1515
"""

0 commit comments

Comments
 (0)