analyser_hj3415 2.9.12__tar.gz → 2.9.13__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: analyser_hj3415
3
- Version: 2.9.12
3
+ Version: 2.9.13
4
4
  Summary: Stock analyser and database processing programs
5
5
  Requires-Python: >=3.6
6
6
  Description-Content-Type: text/markdown
@@ -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=24)
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=48, top=args.top)
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=48)
220
+ mylstm.caching_based_on_prophet_ranking(refresh=args.refresh, expire_time_h=96)
221
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=48)
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':
@@ -10,7 +10,7 @@ import logging
10
10
 
11
11
  eval_logger = helpers.setup_logger('eval_logger', logging.WARNING)
12
12
 
13
- expire_time = 3600 * 24
13
+ expire_time = 3600 * 48
14
14
 
15
15
  class Tools:
16
16
  @staticmethod
@@ -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
- p.code = code
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')
@@ -5,7 +5,7 @@ build-backend = "flit_core.buildapi"
5
5
 
6
6
  [project]
7
7
  name = "analyser_hj3415"
8
- version = "2.9.12"
8
+ version = "2.9.13"
9
9
  description = "Stock analyser and database processing programs"
10
10
  readme = "README.md"
11
11
  requires-python = ">=3.6"