analyser_hj3415 3.0.2__py3-none-any.whl → 3.0.4__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,13 +12,6 @@ mylogger = setup_logger(__name__,'WARNING')
12
12
  expire_time = tools.to_int(os.getenv('DEFAULT_EXPIRE_TIME_H', 48)) * 3600
13
13
 
14
14
 
15
- def is_within_last_three_days(date_to_check: datetime.datetime.date) -> bool:
16
- today = datetime.datetime.now().date() # 현재 날짜 (시간은 무시)
17
- # print('today - ', today)
18
- three_days_ago = today - datetime.timedelta(days=3) # 3일 전 날짜
19
- return three_days_ago <= date_to_check <= today
20
-
21
-
22
15
  class Score:
23
16
  def __init__(self, code):
24
17
  self._code = code
@@ -81,7 +74,7 @@ class Score:
81
74
  if c108_recent_date is None:
82
75
  is_update_c108 = False
83
76
  else:
84
- is_update_c108 = is_within_last_three_days(c108_recent_date.date())
77
+ is_update_c108 = tools.is_within_last_n_days(c108_recent_date,3)
85
78
 
86
79
  mylogger.info("Red score 계산중..")
87
80
  red_score = self.red.get(verbose=False).score
analyser_hj3415/cli.py CHANGED
@@ -162,7 +162,7 @@ def analyser_manager():
162
162
  assert tools.is_6digit(args.code), "code 인자는 6자리 숫자이어야 합니다."
163
163
  mylstm = tsa.MyLSTM(args.code)
164
164
  mylstm.initializing()
165
- mylstm.ensemble_training(num=5)
165
+ mylstm.get_final_predictions(refresh=args.refresh, num=5)
166
166
  mymongo.Logs.save('cli','INFO', f'run >> analyser lstm get {args.code}')
167
167
  else:
168
168
  parser.print_help()
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: analyser_hj3415
3
- Version: 3.0.2
3
+ Version: 3.0.4
4
4
  Summary: Stock analyser and database processing programs
5
5
  Requires-Python: >=3.6
6
6
  Description-Content-Type: text/markdown
7
- Requires-Dist: utils-hj3415>=3.0.8
7
+ Requires-Dist: utils-hj3415>=3.0.10
8
8
  Requires-Dist: db-hj3415>=4.3.0
9
9
  Requires-Dist: scikit-learn>=1.5.2
10
10
  Requires-Dist: plotly>=5.24.1
@@ -1,7 +1,7 @@
1
1
  analyser_hj3415/__init__.py,sha256=huF0tm8fFC96sODN9TmVRmPhDizQ0yBTKNOw8miOBh0,448
2
- analyser_hj3415/cli.py,sha256=2aTh3OIVbB98-bXUNgxayobZbZzbjkTUE1SIPsZ_nFU,9222
2
+ analyser_hj3415/cli.py,sha256=RHMz1JYSVPVkWU6xdrZo-fdRB3tBW3oSC2XrpI8Q2nk,9248
3
3
  analyser_hj3415/analyser/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- analyser_hj3415/analyser/score.py,sha256=cqTHXLBh38N9zlmNzChWZJ42O7gdXhjw_jVevOxDUo8,6420
4
+ analyser_hj3415/analyser/score.py,sha256=RmHWp7fSBkpgKd68SeSyg7oY3TT-nvPQGK36I5P6dk0,6100
5
5
  analyser_hj3415/analyser/eval/__init__.py,sha256=IP1d0Q3nOCAD3zK1qxrC685MkJQfUh-qaXc7xptTxk8,80
6
6
  analyser_hj3415/analyser/eval/blue.py,sha256=fq_eln7-EdwICNQ2sMXAfZKXGhQ29EaJwsGvn7xA29U,7632
7
7
  analyser_hj3415/analyser/eval/common.py,sha256=JBTVvzO6YoeMjKl6X2MF7wgB6fvPTEToHLJSv-V7V4k,12425
@@ -16,7 +16,7 @@ analyser_hj3415/workroom/mysklearn.py,sha256=wJXKz5MqqTzADdG2mqRMMzc_G9RzwYjj5_j
16
16
  analyser_hj3415/workroom/mysklearn2.py,sha256=1lIy6EWEQHkOzDS-av8U0zQH6DuCLKWMI73dnJx5KRs,1495
17
17
  analyser_hj3415/workroom/score.py,sha256=P6nHBJYmyhigGtT4qna4BmNtvt4B93b7SKyzdstJK24,17376
18
18
  analyser_hj3415/workroom/trash.py,sha256=zF-W0piqkGr66UP6-iybo9EXh2gO0RP6R1FnIpsGkl8,12262
19
- analyser_hj3415-3.0.2.dist-info/entry_points.txt,sha256=ZfjPnJuH8SzvhE9vftIPMBIofsc65IAWYOhqOC_L5ck,65
20
- analyser_hj3415-3.0.2.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
21
- analyser_hj3415-3.0.2.dist-info/METADATA,sha256=sFT-bGAG-bhS4jlUietQR3Ro3YGMNMjxoJZHkoKgDq8,6776
22
- analyser_hj3415-3.0.2.dist-info/RECORD,,
19
+ analyser_hj3415-3.0.4.dist-info/entry_points.txt,sha256=ZfjPnJuH8SzvhE9vftIPMBIofsc65IAWYOhqOC_L5ck,65
20
+ analyser_hj3415-3.0.4.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
21
+ analyser_hj3415-3.0.4.dist-info/METADATA,sha256=bR36Tb4IyoDHDhTRx5sS7hQ7sIvfzLn39NeP2e6dxEg,6777
22
+ analyser_hj3415-3.0.4.dist-info/RECORD,,