analyser_hj3415 4.0.0__py3-none-any.whl → 4.0.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.
- analyser_hj3415/analyser/tsa/lstm.py +11 -1
- {analyser_hj3415-4.0.0.dist-info → analyser_hj3415-4.0.1.dist-info}/METADATA +2 -2
- {analyser_hj3415-4.0.0.dist-info → analyser_hj3415-4.0.1.dist-info}/RECORD +5 -5
- {analyser_hj3415-4.0.0.dist-info → analyser_hj3415-4.0.1.dist-info}/WHEEL +0 -0
- {analyser_hj3415-4.0.0.dist-info → analyser_hj3415-4.0.1.dist-info}/entry_points.txt +0 -0
@@ -4,7 +4,7 @@ import pandas
|
|
4
4
|
import yfinance as yf
|
5
5
|
from datetime import datetime, timedelta
|
6
6
|
import pandas as pd
|
7
|
-
from typing import Tuple, Dict, List
|
7
|
+
from typing import Tuple, Dict, List, Optional
|
8
8
|
from sklearn.preprocessing import MinMaxScaler
|
9
9
|
from tensorflow.keras.models import Sequential # type: ignore
|
10
10
|
from tensorflow.keras.layers import LSTM, Dense, Dropout # type: ignore
|
@@ -562,6 +562,16 @@ class MyLSTM:
|
|
562
562
|
num, timer=expire_time)
|
563
563
|
return lstm_chart_data
|
564
564
|
|
565
|
+
def get_chart_data(self) -> Optional[LSTMChartData]:
|
566
|
+
mylogger.info("**** Start get_lstm_chart_data... ****")
|
567
|
+
redis_name = f'{self.ticker}_lstm_chart_data'
|
568
|
+
if myredis.Base.exists(redis_name):
|
569
|
+
mylogger.info(myredis.Base.get_ttl(redis_name))
|
570
|
+
return myredis.Base.get_value(redis_name)
|
571
|
+
else:
|
572
|
+
return None
|
573
|
+
|
574
|
+
|
565
575
|
def is_lstm_up(self) -> bool:
|
566
576
|
"""
|
567
577
|
LSTM 모델의 추세가 상승인지 여부를 확인합니다.
|
@@ -1,11 +1,11 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: analyser_hj3415
|
3
|
-
Version: 4.0.
|
3
|
+
Version: 4.0.1
|
4
4
|
Summary: Stock analyser and database processing programs
|
5
5
|
Requires-Python: >=3.6
|
6
6
|
Description-Content-Type: text/markdown
|
7
7
|
Requires-Dist: utils-hj3415>=3.0.10
|
8
|
-
Requires-Dist: db-hj3415>=4.3.
|
8
|
+
Requires-Dist: db-hj3415>=4.3.5
|
9
9
|
Requires-Dist: scikit-learn>=1.5.2
|
10
10
|
Requires-Dist: plotly>=5.24.1
|
11
11
|
Requires-Dist: yfinance>=0.2.44
|
@@ -9,9 +9,9 @@ analyser_hj3415/analyser/eval/mil.py,sha256=mFMiFCuCBvlQrhQcM5hMg8U4zF32TS1GnUmk
|
|
9
9
|
analyser_hj3415/analyser/eval/red.py,sha256=b-Odud8pxQIO2NjI7m3HbK4FOND5WhaoYV94mCHqDPo,13907
|
10
10
|
analyser_hj3415/analyser/tsa/__init__.py,sha256=pg20ZQRABedTdaIoOr5t043RNKtJ7ji_WmnZrD1IhPg,147
|
11
11
|
analyser_hj3415/analyser/tsa/common.py,sha256=OnsZ_cFYmNzmk0tV5qSqVW-5jJyrwMWHguWdS2Z6fvY,979
|
12
|
-
analyser_hj3415/analyser/tsa/lstm.py,sha256=
|
12
|
+
analyser_hj3415/analyser/tsa/lstm.py,sha256=52DBoW7lbahtuERE7H8o_7zIQjsrZRnPujbFzQTDGvE,28360
|
13
13
|
analyser_hj3415/analyser/tsa/prophet.py,sha256=YNSHnNRl41JrcrmOuuuwHyVoZMpeV4IMliLAF9XXxCk,17651
|
14
|
-
analyser_hj3415-4.0.
|
15
|
-
analyser_hj3415-4.0.
|
16
|
-
analyser_hj3415-4.0.
|
17
|
-
analyser_hj3415-4.0.
|
14
|
+
analyser_hj3415-4.0.1.dist-info/entry_points.txt,sha256=ZfjPnJuH8SzvhE9vftIPMBIofsc65IAWYOhqOC_L5ck,65
|
15
|
+
analyser_hj3415-4.0.1.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
|
16
|
+
analyser_hj3415-4.0.1.dist-info/METADATA,sha256=yzSgeFyt9ulCfVZelbEs9z_fhECojroTobhEYuhMnTA,6777
|
17
|
+
analyser_hj3415-4.0.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|