analyser_hj3415 4.2.0__py3-none-any.whl → 4.2.2__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 +8 -4
- {analyser_hj3415-4.2.0.dist-info → analyser_hj3415-4.2.2.dist-info}/METADATA +1 -1
- {analyser_hj3415-4.2.0.dist-info → analyser_hj3415-4.2.2.dist-info}/RECORD +5 -5
- {analyser_hj3415-4.2.0.dist-info → analyser_hj3415-4.2.2.dist-info}/WHEEL +0 -0
- {analyser_hj3415-4.2.0.dist-info → analyser_hj3415-4.2.2.dist-info}/entry_points.txt +0 -0
@@ -231,6 +231,7 @@ class MyProphet:
|
|
231
231
|
|
232
232
|
if not self.initialized:
|
233
233
|
self.initializing()
|
234
|
+
mylogger.info(f'{self.ticker} _make_prophet_latest_data')
|
234
235
|
try:
|
235
236
|
latest_row = self.df_real.iloc[-1]
|
236
237
|
latest_yhat = \
|
@@ -394,15 +395,18 @@ class CorpProphet(MyProphet):
|
|
394
395
|
|
395
396
|
@staticmethod
|
396
397
|
def ranking(top: Union[int, str] = 'all', refresh=False) -> OrderedDict:
|
397
|
-
mylogger.
|
398
|
+
mylogger.debug("**** Start prophet ranking ... ****")
|
398
399
|
|
399
400
|
data = {}
|
400
401
|
for ticker, latest_data in MyProphet.bulk_get_latest_data(
|
401
402
|
[CorpProphet.code_to_ticker(code) for code in myredis.Corps.list_all_codes()], refresh=refresh).items():
|
402
403
|
code = CorpProphet.ticker_to_code(ticker)
|
403
|
-
|
404
|
-
mylogger.debug(f'{code} score : {score}')
|
405
|
-
|
404
|
+
mylogger.debug(f'{code} latest_data : {latest_data}')
|
405
|
+
mylogger.debug(f'{code} score : {latest_data.score}')
|
406
|
+
if latest_data.score is None:
|
407
|
+
continue
|
408
|
+
else:
|
409
|
+
data[code] = latest_data.score
|
406
410
|
|
407
411
|
ranking = OrderedDict(sorted(data.items(), key=lambda x: x[1], reverse=True))
|
408
412
|
|
@@ -10,8 +10,8 @@ analyser_hj3415/analyser/eval/red.py,sha256=iA4wpuayJalnlwn2SypsHuWPcthvxvNx2Cle
|
|
10
10
|
analyser_hj3415/analyser/tsa/__init__.py,sha256=pg20ZQRABedTdaIoOr5t043RNKtJ7ji_WmnZrD1IhPg,147
|
11
11
|
analyser_hj3415/analyser/tsa/common.py,sha256=ZLUkifupOlLKsrPiqR3y6FaEN4M_loZhxCZXYxkX0us,1874
|
12
12
|
analyser_hj3415/analyser/tsa/lstm.py,sha256=oENuJyyo6U9MMn4UF4ZauGai51_dJisMSUNBiH8udXo,28998
|
13
|
-
analyser_hj3415/analyser/tsa/prophet.py,sha256=
|
14
|
-
analyser_hj3415-4.2.
|
15
|
-
analyser_hj3415-4.2.
|
16
|
-
analyser_hj3415-4.2.
|
17
|
-
analyser_hj3415-4.2.
|
13
|
+
analyser_hj3415/analyser/tsa/prophet.py,sha256=g6-MLOOdfCwmYGoPgfCDh3FZp1FDUbqoWr5WG2kvzEI,17350
|
14
|
+
analyser_hj3415-4.2.2.dist-info/entry_points.txt,sha256=ZfjPnJuH8SzvhE9vftIPMBIofsc65IAWYOhqOC_L5ck,65
|
15
|
+
analyser_hj3415-4.2.2.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
|
16
|
+
analyser_hj3415-4.2.2.dist-info/METADATA,sha256=CJ2COzYB_BtfjmCs-pxhZOz66fZIQd7v3SLz7iukjek,6777
|
17
|
+
analyser_hj3415-4.2.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|