analyser_hj3415 4.2.1__py3-none-any.whl → 4.2.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/common.py +2 -2
- analyser_hj3415/analyser/tsa/prophet.py +3 -3
- {analyser_hj3415-4.2.1.dist-info → analyser_hj3415-4.2.3.dist-info}/METADATA +1 -1
- {analyser_hj3415-4.2.1.dist-info → analyser_hj3415-4.2.3.dist-info}/RECORD +6 -6
- {analyser_hj3415-4.2.1.dist-info → analyser_hj3415-4.2.3.dist-info}/WHEEL +0 -0
- {analyser_hj3415-4.2.1.dist-info → analyser_hj3415-4.2.3.dist-info}/entry_points.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
import numpy as np
|
2
2
|
from dataclasses import dataclass, field
|
3
|
-
from typing import List
|
3
|
+
from typing import List, Optional
|
4
4
|
import pandas as pd
|
5
5
|
from marshmallow import fields, Schema
|
6
6
|
from marshmallow_dataclass import class_schema
|
@@ -55,7 +55,7 @@ class PandasTimestampField(fields.DateTime):
|
|
55
55
|
class ChartPoint:
|
56
56
|
"""prices 리스트의 각 원소(x, y)를 표현할 데이터 클래스"""
|
57
57
|
x: pd.Timestamp = field(metadata={"marshmallow_field": PandasTimestampField()})
|
58
|
-
y: float
|
58
|
+
y: Optional[float] = field(default=None, metadata={"marshmallow_field": fields.Float(allow_none=True)})
|
59
59
|
|
60
60
|
|
61
61
|
|
@@ -395,14 +395,14 @@ class CorpProphet(MyProphet):
|
|
395
395
|
|
396
396
|
@staticmethod
|
397
397
|
def ranking(top: Union[int, str] = 'all', refresh=False) -> OrderedDict:
|
398
|
-
mylogger.
|
398
|
+
mylogger.debug("**** Start prophet ranking ... ****")
|
399
399
|
|
400
400
|
data = {}
|
401
401
|
for ticker, latest_data in MyProphet.bulk_get_latest_data(
|
402
402
|
[CorpProphet.code_to_ticker(code) for code in myredis.Corps.list_all_codes()], refresh=refresh).items():
|
403
403
|
code = CorpProphet.ticker_to_code(ticker)
|
404
|
-
mylogger.
|
405
|
-
mylogger.
|
404
|
+
mylogger.debug(f'{code} latest_data : {latest_data}')
|
405
|
+
mylogger.debug(f'{code} score : {latest_data.score}')
|
406
406
|
if latest_data.score is None:
|
407
407
|
continue
|
408
408
|
else:
|
@@ -8,10 +8,10 @@ analyser_hj3415/analyser/eval/growth.py,sha256=tlHxLx4u5h7bNG0T8ViJujX20QllfrSaB
|
|
8
8
|
analyser_hj3415/analyser/eval/mil.py,sha256=m1Ca7U7IR3A3tbRYAw8wG7SQsI-_LzwYdY9xfM9G8II,15426
|
9
9
|
analyser_hj3415/analyser/eval/red.py,sha256=iA4wpuayJalnlwn2SypsHuWPcthvxvNx2CleDraucFs,12168
|
10
10
|
analyser_hj3415/analyser/tsa/__init__.py,sha256=pg20ZQRABedTdaIoOr5t043RNKtJ7ji_WmnZrD1IhPg,147
|
11
|
-
analyser_hj3415/analyser/tsa/common.py,sha256=
|
11
|
+
analyser_hj3415/analyser/tsa/common.py,sha256=msUPowjFMxOqWqGn5Q_FFzijiuYBGOBrEBckxvV2deg,1979
|
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.3.dist-info/entry_points.txt,sha256=ZfjPnJuH8SzvhE9vftIPMBIofsc65IAWYOhqOC_L5ck,65
|
15
|
+
analyser_hj3415-4.2.3.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
|
16
|
+
analyser_hj3415-4.2.3.dist-info/METADATA,sha256=4PYTJX3EtJYDDdAcpycTc2BI8GrB5wRCT1sezG1qko8,6777
|
17
|
+
analyser_hj3415-4.2.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|