analyser_hj3415 4.4.1__py3-none-any.whl → 4.5.0__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/lstm.py +8 -0
- analyser_hj3415/cli.py +7 -0
- {analyser_hj3415-4.4.1.dist-info → analyser_hj3415-4.5.0.dist-info}/METADATA +1 -1
- {analyser_hj3415-4.4.1.dist-info → analyser_hj3415-4.5.0.dist-info}/RECORD +6 -6
- {analyser_hj3415-4.4.1.dist-info → analyser_hj3415-4.5.0.dist-info}/WHEEL +0 -0
- {analyser_hj3415-4.4.1.dist-info → analyser_hj3415-4.5.0.dist-info}/entry_points.txt +0 -0
@@ -15,6 +15,7 @@ from marshmallow import fields
|
|
15
15
|
|
16
16
|
from utils_hj3415 import tools, setup_logger
|
17
17
|
from db_hj3415 import myredis
|
18
|
+
from db_hj3415.mymongo.flask import Favorites
|
18
19
|
from analyser_hj3415.analyser import MIs, tsa
|
19
20
|
from analyser_hj3415.analyser.tsa.common import PandasTimestampField, ChartPoint
|
20
21
|
|
@@ -614,6 +615,13 @@ class CorpLSTM(MyLSTM):
|
|
614
615
|
mylogger.debug(ranking_topn)
|
615
616
|
MyLSTM.caching_chart_data([CorpLSTM.code_to_ticker(code) for code in ranking_topn.keys() ], num=num)
|
616
617
|
|
618
|
+
@staticmethod
|
619
|
+
def caching_chart_data_favorites(num=5):
|
620
|
+
mylogger.info(f"*** caching_chart_data_favorites ***")
|
621
|
+
fav_codes = Favorites().get_all_codes()
|
622
|
+
mylogger.debug(fav_codes)
|
623
|
+
MyLSTM.caching_chart_data([CorpLSTM.code_to_ticker(code) for code in fav_codes], num=num)
|
624
|
+
|
617
625
|
@staticmethod
|
618
626
|
def caching_chart_data_bulk(codes: List[str], num=5):
|
619
627
|
mylogger.info(f"*** caching_chart_data_bulk : {len(codes)} items ***")
|
analyser_hj3415/cli.py
CHANGED
@@ -31,6 +31,9 @@ def analyser_manager():
|
|
31
31
|
corp_parser = target_subparser.add_parser('corp', help='corp lstm top n 데이터 산출 및 레디스 저장')
|
32
32
|
corp_parser.add_argument('-n', '--num', type=int, help='앙상블트레이닝을 몇회반복할것인지')
|
33
33
|
corp_parser.add_argument('-t', '--top', type=int, help='prophet ranking 몇위까지 작업을 할지')
|
34
|
+
# lstm - caching - favorites 파서
|
35
|
+
corp_parser = target_subparser.add_parser('favorites', help='corp lstm top n 데이터 산출 및 레디스 저장')
|
36
|
+
corp_parser.add_argument('-n', '--num', type=int, help='앙상블트레이닝을 몇회반복할것인지')
|
34
37
|
# lstm - caching - mi 파서
|
35
38
|
mi_parser = target_subparser.add_parser('mi', help='mi lstm 데이터 산출 및 레디스 저장')
|
36
39
|
mi_parser.add_argument('-n', '--num', type=int, help='앙상블트레이닝을 몇회반복할것인지')
|
@@ -193,6 +196,10 @@ def analyser_manager():
|
|
193
196
|
tsa.CorpLSTM.caching_chart_data_topn(top=args.top, num=args.num)
|
194
197
|
mymongo.Logs.save('cli', 'INFO',
|
195
198
|
f'run >> analyser lstm caching corp -t {args.top} -n {args.num}')
|
199
|
+
elif args.target == 'favorites':
|
200
|
+
tsa.CorpLSTM.caching_chart_data_favorites(num=args.num)
|
201
|
+
mymongo.Logs.save('cli', 'INFO',
|
202
|
+
f'run >> analyser lstm caching favorites -n {args.num}')
|
196
203
|
elif args.target == 'mi':
|
197
204
|
tsa.MILSTM.caching_chart_data_mi_all(num=args.num)
|
198
205
|
mymongo.Logs.save('cli', 'INFO',
|
@@ -1,6 +1,6 @@
|
|
1
1
|
analyser_hj3415/.DS_Store,sha256=fppknfhS_OdwBFgHHQaBDBRZG0WleCeML46EOj8nxIo,6148
|
2
2
|
analyser_hj3415/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
|
-
analyser_hj3415/cli.py,sha256=
|
3
|
+
analyser_hj3415/cli.py,sha256=drfh0cqZ0LUHUJMJeyXcv1QTD7VYJMr58gcY4WHsVk4,11956
|
4
4
|
analyser_hj3415/analyser/__init__.py,sha256=N0XyBfWJNpDS_6JYziKETWePO_jtFB1m7E8Qbwt1w0Q,1096
|
5
5
|
analyser_hj3415/analyser/eval/__init__.py,sha256=IP1d0Q3nOCAD3zK1qxrC685MkJQfUh-qaXc7xptTxk8,80
|
6
6
|
analyser_hj3415/analyser/eval/blue.py,sha256=KBoKevikS74ys9zcVls6GaEdBkW-avcxHWkSPywOcPU,10644
|
@@ -10,9 +10,9 @@ analyser_hj3415/analyser/eval/mil.py,sha256=6_1SuWqG1fsuZUKuaABhSqNsYCgj5np35auW
|
|
10
10
|
analyser_hj3415/analyser/eval/red.py,sha256=Abf5HPsNWKnDF4cbZ8xhlNsMF6ljN_sShCAYyPAhCYs,12028
|
11
11
|
analyser_hj3415/analyser/tsa/__init__.py,sha256=7j-WshikzsDGGo_wuFoMPNmYfY-bLSEMd6o1MKSQKLI,150
|
12
12
|
analyser_hj3415/analyser/tsa/common.py,sha256=iRwk88zBtEIqzSmTQWmQIWiiqZ9gN7GLtDUa5rx8IGM,1918
|
13
|
-
analyser_hj3415/analyser/tsa/lstm.py,sha256=
|
13
|
+
analyser_hj3415/analyser/tsa/lstm.py,sha256=8wg-9IjJGRzsZd1_KsrHhx3MExhf6DlrY5EJgqL6qR4,29929
|
14
14
|
analyser_hj3415/analyser/tsa/myprophet.py,sha256=QHeIHinCZzMhuLpAqrMdy4E56MFbCGd89i9dR8cGXrw,18976
|
15
|
-
analyser_hj3415-4.
|
16
|
-
analyser_hj3415-4.
|
17
|
-
analyser_hj3415-4.
|
18
|
-
analyser_hj3415-4.
|
15
|
+
analyser_hj3415-4.5.0.dist-info/entry_points.txt,sha256=ZfjPnJuH8SzvhE9vftIPMBIofsc65IAWYOhqOC_L5ck,65
|
16
|
+
analyser_hj3415-4.5.0.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
|
17
|
+
analyser_hj3415-4.5.0.dist-info/METADATA,sha256=FFrnXcurjCX0QDspgxB74WbJhP7Du1AjJhAmfH02SGc,6811
|
18
|
+
analyser_hj3415-4.5.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|