analyser_hj3415 4.0.2__py3-none-any.whl → 4.0.3__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/prophet.py +4 -4
- {analyser_hj3415-4.0.2.dist-info → analyser_hj3415-4.0.3.dist-info}/METADATA +1 -1
- {analyser_hj3415-4.0.2.dist-info → analyser_hj3415-4.0.3.dist-info}/RECORD +5 -5
- {analyser_hj3415-4.0.2.dist-info → analyser_hj3415-4.0.3.dist-info}/WHEEL +0 -0
- {analyser_hj3415-4.0.2.dist-info → analyser_hj3415-4.0.3.dist-info}/entry_points.txt +0 -0
@@ -344,7 +344,7 @@ class MyProphet:
|
|
344
344
|
return False
|
345
345
|
|
346
346
|
@staticmethod
|
347
|
-
def
|
347
|
+
def bulk_get_latest_data(tickers: List[str], refresh: bool) -> Dict[str, ProphetLatestData]:
|
348
348
|
# --- (1) 파이프라인 GET ---
|
349
349
|
pipe = myredis.Base.redis_client.pipeline()
|
350
350
|
redis_keys = [f"{ticker}_{MyProphet.REDIS_LATEST_DATA_SUFFIX}" for ticker in tickers]
|
@@ -428,7 +428,7 @@ class CorpProphet(MyProphet):
|
|
428
428
|
mylogger.info("**** Start prophet ranking ... ****")
|
429
429
|
|
430
430
|
data = {}
|
431
|
-
for ticker, latest_data in MyProphet.
|
431
|
+
for ticker, latest_data in MyProphet.bulk_get_latest_data(
|
432
432
|
[CorpProphet.code_to_ticker(code) for code in myredis.Corps.list_all_codes()], refresh=refresh).items():
|
433
433
|
code = CorpProphet.ticker_to_code(ticker)
|
434
434
|
score = latest_data.score
|
@@ -446,8 +446,8 @@ class CorpProphet(MyProphet):
|
|
446
446
|
raise ValueError("top 인자는 'all' 이나 int형 이어야 합니다.")
|
447
447
|
|
448
448
|
@staticmethod
|
449
|
-
def
|
450
|
-
return MyProphet.
|
449
|
+
def bulk_get_latest_data(codes: List[str], refresh: bool) -> Dict[str, ProphetLatestData]:
|
450
|
+
return MyProphet.bulk_get_latest_data([CorpProphet.code_to_ticker(code) for code in codes], refresh=refresh)
|
451
451
|
|
452
452
|
|
453
453
|
class MIProphet(MyProphet):
|
@@ -10,8 +10,8 @@ analyser_hj3415/analyser/eval/red.py,sha256=b-Odud8pxQIO2NjI7m3HbK4FOND5WhaoYV94
|
|
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
12
|
analyser_hj3415/analyser/tsa/lstm.py,sha256=55MV62jSPqdOw1zAk1zB7LacNDesPsrmcUwHqaCz6Gs,27974
|
13
|
-
analyser_hj3415/analyser/tsa/prophet.py,sha256=
|
14
|
-
analyser_hj3415-4.0.
|
15
|
-
analyser_hj3415-4.0.
|
16
|
-
analyser_hj3415-4.0.
|
17
|
-
analyser_hj3415-4.0.
|
13
|
+
analyser_hj3415/analyser/tsa/prophet.py,sha256=M5Jl4xOOKAWrBnbuL5eGZEev5Q1l1t4teUrHzzZvREw,18317
|
14
|
+
analyser_hj3415-4.0.3.dist-info/entry_points.txt,sha256=ZfjPnJuH8SzvhE9vftIPMBIofsc65IAWYOhqOC_L5ck,65
|
15
|
+
analyser_hj3415-4.0.3.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
|
16
|
+
analyser_hj3415-4.0.3.dist-info/METADATA,sha256=5APcmvLp0k6vpxelSe12qflJCJ6bzCKP8spcdIxgYdg,6777
|
17
|
+
analyser_hj3415-4.0.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|