analyser_hj3415 2.9.15__tar.gz → 2.9.16__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {analyser_hj3415-2.9.15 → analyser_hj3415-2.9.16}/PKG-INFO +1 -1
- {analyser_hj3415-2.9.15 → analyser_hj3415-2.9.16}/analyser_hj3415/tsa.py +10 -7
- {analyser_hj3415-2.9.15 → analyser_hj3415-2.9.16}/pyproject.toml +1 -1
- {analyser_hj3415-2.9.15 → analyser_hj3415-2.9.16}/.gitignore +0 -0
- {analyser_hj3415-2.9.15 → analyser_hj3415-2.9.16}/README.md +0 -0
- {analyser_hj3415-2.9.15 → analyser_hj3415-2.9.16}/analyser_hj3415/__init__.py +0 -0
- {analyser_hj3415-2.9.15 → analyser_hj3415-2.9.16}/analyser_hj3415/cli.py +0 -0
- {analyser_hj3415-2.9.15 → analyser_hj3415-2.9.16}/analyser_hj3415/eval.py +0 -0
- {analyser_hj3415-2.9.15 → analyser_hj3415-2.9.16}/analyser_hj3415/workroom/__init__.py +0 -0
- {analyser_hj3415-2.9.15 → analyser_hj3415-2.9.16}/analyser_hj3415/workroom/mysklearn.py +0 -0
- {analyser_hj3415-2.9.15 → analyser_hj3415-2.9.16}/analyser_hj3415/workroom/mysklearn2.py +0 -0
- {analyser_hj3415-2.9.15 → analyser_hj3415-2.9.16}/analyser_hj3415/workroom/score.py +0 -0
- {analyser_hj3415-2.9.15 → analyser_hj3415-2.9.16}/analyser_hj3415/workroom/trash.py +0 -0
@@ -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):
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|