analyser_hj3415 2.10.4__py3-none-any.whl → 2.10.6__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- analyser_hj3415/score.py +9 -1
- {analyser_hj3415-2.10.4.dist-info → analyser_hj3415-2.10.6.dist-info}/METADATA +1 -1
- {analyser_hj3415-2.10.4.dist-info → analyser_hj3415-2.10.6.dist-info}/RECORD +5 -5
- {analyser_hj3415-2.10.4.dist-info → analyser_hj3415-2.10.6.dist-info}/WHEEL +0 -0
- {analyser_hj3415-2.10.4.dist-info → analyser_hj3415-2.10.6.dist-info}/entry_points.txt +0 -0
analyser_hj3415/score.py
CHANGED
@@ -59,6 +59,7 @@ class Score:
|
|
59
59
|
- 'red_score': float - Red score
|
60
60
|
- '이익지표': float - Mil의 이익지표
|
61
61
|
- '주주수익률': float - Mil의 주주수익률
|
62
|
+
- 'is_lstm_up': Union[bool, None] - lstm 예측치가 상승인지 아닌지, returns None - 데이터가 없으면..
|
62
63
|
- 'prophet_score': int - prophet score
|
63
64
|
"""
|
64
65
|
print(f"{self.code}/{self.name}의 scoring을 시작합니다.")
|
@@ -85,6 +86,12 @@ class Score:
|
|
85
86
|
score_logger.info("Mil data 계산중..")
|
86
87
|
mil_data = self.mil.get(verbose=False)
|
87
88
|
|
89
|
+
score_logger.info("Lstm 최근 데이터 조회중..")
|
90
|
+
if myredis.Base.exists(f'{self.code}_mylstm_predictions'):
|
91
|
+
is_lstm_up = self.lstm.is_up()
|
92
|
+
else:
|
93
|
+
is_lstm_up = None
|
94
|
+
|
88
95
|
score_logger.info("\tProphet 최근 데이터 조회중..")
|
89
96
|
prophet_score = self.prophet.scoring()
|
90
97
|
|
@@ -95,6 +102,7 @@ class Score:
|
|
95
102
|
'red_score': red_score,
|
96
103
|
'이익지표': mil_data.이익지표,
|
97
104
|
'주주수익률': mil_data.주주수익률,
|
105
|
+
'is_lstm_up': is_lstm_up,
|
98
106
|
'prophet_score': prophet_score,
|
99
107
|
}
|
100
108
|
data_dict = myredis.Base.fetch_and_cache_data(redis_name, refresh, fetch_score, timer=expire_time_h * 3600)
|
@@ -137,7 +145,7 @@ class Score:
|
|
137
145
|
except ValueError:
|
138
146
|
score_logger.error(f'score ranking error : {code}')
|
139
147
|
continue
|
140
|
-
score = s.get()
|
148
|
+
score = s.get(refresh=refresh)
|
141
149
|
data[code] = score
|
142
150
|
return data
|
143
151
|
|
@@ -1,14 +1,14 @@
|
|
1
1
|
analyser_hj3415/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
analyser_hj3415/cli.py,sha256=eRaFtkioooe2Rgzq5J3Lxd2oX17OnIwDZPo2msutjM0,12497
|
3
3
|
analyser_hj3415/eval.py,sha256=9rWNTa3vbUnegOfpfVtWLXmt8cxU2zWZD5yEsFlfTzQ,38796
|
4
|
-
analyser_hj3415/score.py,sha256=
|
4
|
+
analyser_hj3415/score.py,sha256=PCrkC5N8JVIDVjegxyoqhUZSue0x3lPmc5cyk3D_Gdk,6529
|
5
5
|
analyser_hj3415/tsa.py,sha256=X62ypwSWRMAAU72IJoBdEeyU8rVaaMRqZ3XsslziBfM,28111
|
6
6
|
analyser_hj3415/workroom/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
analyser_hj3415/workroom/mysklearn.py,sha256=wJXKz5MqqTzADdG2mqRMMzc_G9RzwYjj5_j4gyOopxQ,2030
|
8
8
|
analyser_hj3415/workroom/mysklearn2.py,sha256=1lIy6EWEQHkOzDS-av8U0zQH6DuCLKWMI73dnJx5KRs,1495
|
9
9
|
analyser_hj3415/workroom/score.py,sha256=P6nHBJYmyhigGtT4qna4BmNtvt4B93b7SKyzdstJK24,17376
|
10
10
|
analyser_hj3415/workroom/trash.py,sha256=zF-W0piqkGr66UP6-iybo9EXh2gO0RP6R1FnIpsGkl8,12262
|
11
|
-
analyser_hj3415-2.10.
|
12
|
-
analyser_hj3415-2.10.
|
13
|
-
analyser_hj3415-2.10.
|
14
|
-
analyser_hj3415-2.10.
|
11
|
+
analyser_hj3415-2.10.6.dist-info/entry_points.txt,sha256=ZfjPnJuH8SzvhE9vftIPMBIofsc65IAWYOhqOC_L5ck,65
|
12
|
+
analyser_hj3415-2.10.6.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
|
13
|
+
analyser_hj3415-2.10.6.dist-info/METADATA,sha256=rfyUlpne6HrelzmEwZqJVHPnb_roSNHWmwzZe9UamrU,6777
|
14
|
+
analyser_hj3415-2.10.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|