analyser_hj3415 4.3.0__py3-none-any.whl → 4.3.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,6 +4,7 @@ from datetime import datetime, timedelta
4
4
  import pandas as pd
5
5
  from typing import Tuple, Dict, List, Optional
6
6
  from sklearn.preprocessing import MinMaxScaler
7
+ from tensorflow.keras.backend import clear_session # type: ignore
7
8
  from tensorflow.keras.models import Sequential # type: ignore
8
9
  from tensorflow.keras.layers import LSTM, Dense, Dropout # type: ignore
9
10
  from tensorflow.keras.callbacks import EarlyStopping # type: ignore
@@ -406,6 +407,8 @@ class MyLSTM:
406
407
  future_predictions_2d = np.array(future_predictions).reshape(-1, 1)
407
408
  future_predictions_scaled_2d = self.scaler.inverse_transform(future_predictions_2d)
408
409
  ensemble_future_predictions_2d.append(future_predictions_scaled_2d)
410
+ del model
411
+ clear_session()
409
412
 
410
413
 
411
414
  lstm_grade = grading(ensemble_train_predictions_2d, ensemble_test_predictions_2d)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: analyser_hj3415
3
- Version: 4.3.0
3
+ Version: 4.3.1
4
4
  Summary: Stock analyser and database processing programs
5
5
  Requires-Python: >=3.6
6
6
  Description-Content-Type: text/markdown
@@ -9,9 +9,9 @@ analyser_hj3415/analyser/eval/mil.py,sha256=6_1SuWqG1fsuZUKuaABhSqNsYCgj5np35auW
9
9
  analyser_hj3415/analyser/eval/red.py,sha256=Abf5HPsNWKnDF4cbZ8xhlNsMF6ljN_sShCAYyPAhCYs,12028
10
10
  analyser_hj3415/analyser/tsa/__init__.py,sha256=82IpOID0NUDgABs5sbw2USYYnuUVyt05szRdzl9h2MM,148
11
11
  analyser_hj3415/analyser/tsa/common.py,sha256=iRwk88zBtEIqzSmTQWmQIWiiqZ9gN7GLtDUa5rx8IGM,1918
12
- analyser_hj3415/analyser/tsa/lstm.py,sha256=kVAW8KeCwGhSgqfBkUsUWN6udY9Vztk7OfeC3p3wrTU,28790
12
+ analyser_hj3415/analyser/tsa/lstm.py,sha256=howngiVaEFKccYif6vrREm6skZiDzxazq44SdY_82yQ,28906
13
13
  analyser_hj3415/analyser/tsa/myprophet.py,sha256=2WPR7OJBPKYrl_uAzfcDdezJ7oWeQWlz-eU-yriuKlw,17098
14
- analyser_hj3415-4.3.0.dist-info/entry_points.txt,sha256=ZfjPnJuH8SzvhE9vftIPMBIofsc65IAWYOhqOC_L5ck,65
15
- analyser_hj3415-4.3.0.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
16
- analyser_hj3415-4.3.0.dist-info/METADATA,sha256=Fu_Mp5QoqOzvZIBn_sPkTFq7kfqOPGUTfwFBysFDywA,6811
17
- analyser_hj3415-4.3.0.dist-info/RECORD,,
14
+ analyser_hj3415-4.3.1.dist-info/entry_points.txt,sha256=ZfjPnJuH8SzvhE9vftIPMBIofsc65IAWYOhqOC_L5ck,65
15
+ analyser_hj3415-4.3.1.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
16
+ analyser_hj3415-4.3.1.dist-info/METADATA,sha256=sc_X_j_jE_Tfu8NrZte6DBfbleIvGH2zd507wauH29k,6811
17
+ analyser_hj3415-4.3.1.dist-info/RECORD,,