analyser_hj3415 2.9.14__tar.gz → 2.9.15__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {analyser_hj3415-2.9.14 → analyser_hj3415-2.9.15}/PKG-INFO +1 -1
- {analyser_hj3415-2.9.14 → analyser_hj3415-2.9.15}/analyser_hj3415/tsa.py +11 -2
- {analyser_hj3415-2.9.14 → analyser_hj3415-2.9.15}/pyproject.toml +1 -1
- {analyser_hj3415-2.9.14 → analyser_hj3415-2.9.15}/.gitignore +0 -0
- {analyser_hj3415-2.9.14 → analyser_hj3415-2.9.15}/README.md +0 -0
- {analyser_hj3415-2.9.14 → analyser_hj3415-2.9.15}/analyser_hj3415/__init__.py +0 -0
- {analyser_hj3415-2.9.14 → analyser_hj3415-2.9.15}/analyser_hj3415/cli.py +0 -0
- {analyser_hj3415-2.9.14 → analyser_hj3415-2.9.15}/analyser_hj3415/eval.py +0 -0
- {analyser_hj3415-2.9.14 → analyser_hj3415-2.9.15}/analyser_hj3415/workroom/__init__.py +0 -0
- {analyser_hj3415-2.9.14 → analyser_hj3415-2.9.15}/analyser_hj3415/workroom/mysklearn.py +0 -0
- {analyser_hj3415-2.9.14 → analyser_hj3415-2.9.15}/analyser_hj3415/workroom/mysklearn2.py +0 -0
- {analyser_hj3415-2.9.14 → analyser_hj3415-2.9.15}/analyser_hj3415/workroom/score.py +0 -0
- {analyser_hj3415-2.9.14 → analyser_hj3415-2.9.15}/analyser_hj3415/workroom/trash.py +0 -0
@@ -235,7 +235,7 @@ class MyProphet:
|
|
235
235
|
if isinstance(top, int):
|
236
236
|
return OrderedDict(list(ranking.items())[:top])
|
237
237
|
else:
|
238
|
-
raise ValueError("top 인자는 int
|
238
|
+
raise ValueError("top 인자는 'all' 이나 int형 이어야 합니다.")
|
239
239
|
|
240
240
|
@dataclass
|
241
241
|
class LSTMData:
|
@@ -671,9 +671,18 @@ class MyLSTM:
|
|
671
671
|
plt.title('Stock Price Prediction with LSTM Ensemble')
|
672
672
|
plt.show()"""
|
673
673
|
|
674
|
+
def is_up(self)-> bool:
|
675
|
+
# 튜플의 [0]은 날짜 [1]은 값 배열
|
676
|
+
data = self.get_final_predictions(refresh=False, expire_time_h=24)[1]
|
677
|
+
# 데이터를 1D 배열로 변환
|
678
|
+
flattened_data = data.flatten()
|
679
|
+
tsa_logger.debug(f"flattened_data : {flattened_data}")
|
680
|
+
# 증가 여부 확인
|
681
|
+
return all(flattened_data[i] < flattened_data[i + 1] for i in range(len(flattened_data) - 1))
|
682
|
+
|
674
683
|
@staticmethod
|
675
684
|
def caching_based_on_prophet_ranking(refresh: bool, expire_time_h: int, top=20):
|
676
|
-
ranking_topn =
|
685
|
+
ranking_topn = MyProphet.ranking(refresh=False, top=top)
|
677
686
|
tsa_logger.info(ranking_topn)
|
678
687
|
mylstm = MyLSTM('005930')
|
679
688
|
print(f"*** LSTM prediction redis cashing top{top} items ***")
|
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
|