analyser_hj3415 2.9.11__py3-none-any.whl → 2.9.13__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- analyser_hj3415/cli.py +5 -5
- analyser_hj3415/eval.py +1 -1
- analyser_hj3415/tsa.py +5 -1
- {analyser_hj3415-2.9.11.dist-info → analyser_hj3415-2.9.13.dist-info}/METADATA +1 -1
- {analyser_hj3415-2.9.11.dist-info → analyser_hj3415-2.9.13.dist-info}/RECORD +7 -7
- {analyser_hj3415-2.9.11.dist-info → analyser_hj3415-2.9.13.dist-info}/WHEEL +0 -0
- {analyser_hj3415-2.9.11.dist-info → analyser_hj3415-2.9.13.dist-info}/entry_points.txt +0 -0
analyser_hj3415/cli.py
CHANGED
@@ -207,7 +207,7 @@ def analyser_manager():
|
|
207
207
|
elif args.type == 'prophet':
|
208
208
|
if args.command == 'ranking':
|
209
209
|
myprophet = tsa.MyProphet
|
210
|
-
result = myprophet.ranking(refresh=args.refresh, expire_time_h=
|
210
|
+
result = myprophet.ranking(refresh=args.refresh, expire_time_h=48)
|
211
211
|
print(result)
|
212
212
|
mymongo.Logs.save('cli','INFO', 'run >> analyser prophet ranking')
|
213
213
|
|
@@ -215,13 +215,13 @@ def analyser_manager():
|
|
215
215
|
mylstm = tsa.MyLSTM
|
216
216
|
if args.command == 'caching':
|
217
217
|
if args.top:
|
218
|
-
mylstm.caching_based_on_prophet_ranking(refresh=args.refresh, expire_time_h=
|
218
|
+
mylstm.caching_based_on_prophet_ranking(refresh=args.refresh, expire_time_h=96, top=args.top)
|
219
219
|
else:
|
220
|
-
mylstm.caching_based_on_prophet_ranking(refresh=args.refresh, expire_time_h=
|
221
|
-
mymongo.Logs.save('cli','INFO', f'run >> analyser lstm caching / top={args.top if args.top else 20}
|
220
|
+
mylstm.caching_based_on_prophet_ranking(refresh=args.refresh, expire_time_h=96)
|
221
|
+
mymongo.Logs.save('cli','INFO', f'run >> analyser lstm caching / top={args.top if args.top else 20}')
|
222
222
|
elif args.command == 'get':
|
223
223
|
assert utils.is_6digit(args.code), "code 인자는 6자리 숫자이어야 합니다."
|
224
|
-
result = mylstm(args.code).get_final_predictions(refresh=args.refresh, expire_time_h=
|
224
|
+
result = mylstm(args.code).get_final_predictions(refresh=args.refresh, expire_time_h=96)
|
225
225
|
mymongo.Logs.save('cli','INFO', f'run >> analyser lstm get {args.code}')
|
226
226
|
|
227
227
|
elif args.type == 'setting':
|
analyser_hj3415/eval.py
CHANGED
analyser_hj3415/tsa.py
CHANGED
@@ -209,7 +209,11 @@ class MyProphet:
|
|
209
209
|
data = {}
|
210
210
|
p = MyProphet('005930')
|
211
211
|
for i, code in enumerate(myredis.Corps.list_all_codes()):
|
212
|
-
|
212
|
+
try:
|
213
|
+
p.code = code
|
214
|
+
except ValueError:
|
215
|
+
tsa_logger.error(f'myprophet ranking error : {code}/{myredis.Corps(code, "c101").get_name()}')
|
216
|
+
continue
|
213
217
|
last_real_data = p._preprocessing_for_prophet().iloc[-1]
|
214
218
|
recent_price = last_real_data['y']
|
215
219
|
recent_date = datetime.strftime(last_real_data['ds'], '%Y-%m-%d')
|
@@ -1,13 +1,13 @@
|
|
1
1
|
analyser_hj3415/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
analyser_hj3415/cli.py,sha256=
|
3
|
-
analyser_hj3415/eval.py,sha256=
|
4
|
-
analyser_hj3415/tsa.py,sha256=
|
2
|
+
analyser_hj3415/cli.py,sha256=a4oUwfPFEdd3r2Fq2EMHBITcp6lbXUjZvVWvCHIvCUQ,12540
|
3
|
+
analyser_hj3415/eval.py,sha256=eNrcbpVyj7SZJevWqatlj_gJ2EQTmLZAz2nPG5qNv6k,38811
|
4
|
+
analyser_hj3415/tsa.py,sha256=p_4COG10QacfkT3kQ-jcpEUpXjxWkYGHFLyiBoj-ElA,27188
|
5
5
|
analyser_hj3415/workroom/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
6
|
analyser_hj3415/workroom/mysklearn.py,sha256=wJXKz5MqqTzADdG2mqRMMzc_G9RzwYjj5_j4gyOopxQ,2030
|
7
7
|
analyser_hj3415/workroom/mysklearn2.py,sha256=1lIy6EWEQHkOzDS-av8U0zQH6DuCLKWMI73dnJx5KRs,1495
|
8
8
|
analyser_hj3415/workroom/score.py,sha256=P6nHBJYmyhigGtT4qna4BmNtvt4B93b7SKyzdstJK24,17376
|
9
9
|
analyser_hj3415/workroom/trash.py,sha256=zF-W0piqkGr66UP6-iybo9EXh2gO0RP6R1FnIpsGkl8,12262
|
10
|
-
analyser_hj3415-2.9.
|
11
|
-
analyser_hj3415-2.9.
|
12
|
-
analyser_hj3415-2.9.
|
13
|
-
analyser_hj3415-2.9.
|
10
|
+
analyser_hj3415-2.9.13.dist-info/entry_points.txt,sha256=ZfjPnJuH8SzvhE9vftIPMBIofsc65IAWYOhqOC_L5ck,65
|
11
|
+
analyser_hj3415-2.9.13.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
|
12
|
+
analyser_hj3415-2.9.13.dist-info/METADATA,sha256=BZVXDFQthdUoj4oEcy54IkW2_NeLCBBCZvL3UIICTUc,6777
|
13
|
+
analyser_hj3415-2.9.13.dist-info/RECORD,,
|
File without changes
|
File without changes
|