mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-04 16:57:32 +08:00
Reenable files when TensorFlow supports the current Python (#11318)
* Remove python_version < '3.12' for tensorflow * Reenable dynamic_programming/k_means_clustering_tensorflow.py * updating DIRECTORY.md * Try to fix ruff * Try to fix ruff * Try to fix ruff * Try to fix ruff * Try to fix ruff * Reenable machine_learning/lstm/lstm_prediction.py * updating DIRECTORY.md * Try to fix ruff * Reenable computer_vision/cnn_classification.py * updating DIRECTORY.md * Reenable neural_network/input_data.py * updating DIRECTORY.md * Try to fix ruff * Try to fix ruff * Try to fix mypy * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Try to fix ruff * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: MaximSmolskiy <MaximSmolskiy@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@ -17,11 +17,11 @@ if __name__ == "__main__":
|
||||
make sure you set the price column on line number 21. Here we
|
||||
use a dataset which have the price on 3rd column.
|
||||
"""
|
||||
df = pd.read_csv("sample_data.csv", header=None)
|
||||
len_data = df.shape[:1][0]
|
||||
sample_data = pd.read_csv("sample_data.csv", header=None)
|
||||
len_data = sample_data.shape[:1][0]
|
||||
# If you're using some other dataset input the target column
|
||||
actual_data = df.iloc[:, 1:2]
|
||||
actual_data = actual_data.values.reshape(len_data, 1)
|
||||
actual_data = sample_data.iloc[:, 1:2]
|
||||
actual_data = actual_data.to_numpy().reshape(len_data, 1)
|
||||
actual_data = MinMaxScaler().fit_transform(actual_data)
|
||||
look_back = 10
|
||||
forward_days = 5
|
Reference in New Issue
Block a user