analyser_hj3415 2.9.15__py3-none-any.whl → 2.9.17__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/tsa.py +10 -7
- {analyser_hj3415-2.9.15.dist-info → analyser_hj3415-2.9.17.dist-info}/METADATA +1 -1
- {analyser_hj3415-2.9.15.dist-info → analyser_hj3415-2.9.17.dist-info}/RECORD +5 -5
- {analyser_hj3415-2.9.15.dist-info → analyser_hj3415-2.9.17.dist-info}/WHEEL +0 -0
- {analyser_hj3415-2.9.15.dist-info → analyser_hj3415-2.9.17.dist-info}/entry_points.txt +0 -0
analyser_hj3415/tsa.py
CHANGED
@@ -671,14 +671,17 @@ class MyLSTM:
|
|
671
671
|
plt.title('Stock Price Prediction with LSTM Ensemble')
|
672
672
|
plt.show()"""
|
673
673
|
|
674
|
-
def is_up(self)-> bool:
|
674
|
+
def is_up(self)-> Optional[bool]:
|
675
675
|
# 튜플의 [0]은 날짜 [1]은 값 배열
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
676
|
+
if myredis.Base.exists(f'{self.code}_mylstm_predictions'):
|
677
|
+
data = self.get_final_predictions(refresh=False, expire_time_h=24)[1]
|
678
|
+
# 데이터를 1D 배열로 변환
|
679
|
+
flattened_data = data.flatten()
|
680
|
+
tsa_logger.debug(f"flattened_data : {flattened_data}")
|
681
|
+
# 증가 여부 확인
|
682
|
+
return all(flattened_data[i] < flattened_data[i + 1] for i in range(len(flattened_data) - 1))
|
683
|
+
else:
|
684
|
+
return None
|
682
685
|
|
683
686
|
@staticmethod
|
684
687
|
def caching_based_on_prophet_ranking(refresh: bool, expire_time_h: int, top=20):
|
@@ -1,13 +1,13 @@
|
|
1
1
|
analyser_hj3415/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
analyser_hj3415/cli.py,sha256=a4oUwfPFEdd3r2Fq2EMHBITcp6lbXUjZvVWvCHIvCUQ,12540
|
3
3
|
analyser_hj3415/eval.py,sha256=eNrcbpVyj7SZJevWqatlj_gJ2EQTmLZAz2nPG5qNv6k,38811
|
4
|
-
analyser_hj3415/tsa.py,sha256=
|
4
|
+
analyser_hj3415/tsa.py,sha256=BF5vwZuVljYfOrlYXQ7Rq4Y7akDaPNyAaVM9u-oA8Y8,28020
|
5
5
|
analyser_hj3415/workroom/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
6
|
analyser_hj3415/workroom/mysklearn.py,sha256=wJXKz5MqqTzADdG2mqRMMzc_G9RzwYjj5_j4gyOopxQ,2030
|
7
7
|
analyser_hj3415/workroom/mysklearn2.py,sha256=1lIy6EWEQHkOzDS-av8U0zQH6DuCLKWMI73dnJx5KRs,1495
|
8
8
|
analyser_hj3415/workroom/score.py,sha256=P6nHBJYmyhigGtT4qna4BmNtvt4B93b7SKyzdstJK24,17376
|
9
9
|
analyser_hj3415/workroom/trash.py,sha256=zF-W0piqkGr66UP6-iybo9EXh2gO0RP6R1FnIpsGkl8,12262
|
10
|
-
analyser_hj3415-2.9.
|
11
|
-
analyser_hj3415-2.9.
|
12
|
-
analyser_hj3415-2.9.
|
13
|
-
analyser_hj3415-2.9.
|
10
|
+
analyser_hj3415-2.9.17.dist-info/entry_points.txt,sha256=ZfjPnJuH8SzvhE9vftIPMBIofsc65IAWYOhqOC_L5ck,65
|
11
|
+
analyser_hj3415-2.9.17.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
|
12
|
+
analyser_hj3415-2.9.17.dist-info/METADATA,sha256=N4vzLnFH3ijzzI1d9f54k_G1326v6NqDGcJ86qs2fdM,6777
|
13
|
+
analyser_hj3415-2.9.17.dist-info/RECORD,,
|
File without changes
|
File without changes
|