mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +00:00
[pre-commit.ci] pre-commit autoupdate (#11380)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.3.7 → v0.4.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.7...v0.4.1) - [github.com/tox-dev/pyproject-fmt: 1.7.0 → 1.8.0](https://github.com/tox-dev/pyproject-fmt/compare/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 <cclauss@me.com>
This commit is contained in:
parent
2702bf9400
commit
dbfa21813f
|
@ -16,7 +16,7 @@ repos:
|
|||
- id: auto-walrus
|
||||
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: v0.3.7
|
||||
rev: v0.4.1
|
||||
hooks:
|
||||
- id: ruff
|
||||
- id: ruff-format
|
||||
|
@ -29,7 +29,7 @@ repos:
|
|||
- tomli
|
||||
|
||||
- repo: https://github.com/tox-dev/pyproject-fmt
|
||||
rev: "1.7.0"
|
||||
rev: "1.8.0"
|
||||
hooks:
|
||||
- id: pyproject-fmt
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ import numpy as np
|
|||
|
||||
# Importing the Keras libraries and packages
|
||||
import tensorflow as tf
|
||||
from tensorflow.keras import layers, models
|
||||
from keras import layers, models
|
||||
|
||||
if __name__ == "__main__":
|
||||
# Initialising the CNN
|
||||
|
|
|
@ -7,9 +7,9 @@ An LSTM is a type of Recurrent Neural Network (RNN) as discussed at:
|
|||
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
from keras.layers import LSTM, Dense
|
||||
from keras.models import Sequential
|
||||
from sklearn.preprocessing import MinMaxScaler
|
||||
from tensorflow.keras.layers import LSTM, Dense
|
||||
from tensorflow.keras.models import Sequential
|
||||
|
||||
if __name__ == "__main__":
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user