analyser_hj3415 4.4.0__py3-none-any.whl → 4.4.1__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 +17 -0
- {analyser_hj3415-4.4.0.dist-info → analyser_hj3415-4.4.1.dist-info}/METADATA +1 -1
- {analyser_hj3415-4.4.0.dist-info → analyser_hj3415-4.4.1.dist-info}/RECORD +5 -5
- {analyser_hj3415-4.4.0.dist-info → analyser_hj3415-4.4.1.dist-info}/WHEEL +0 -0
- {analyser_hj3415-4.4.0.dist-info → analyser_hj3415-4.4.1.dist-info}/entry_points.txt +0 -0
@@ -662,11 +662,28 @@ class MILSTM(MyLSTM):
|
|
662
662
|
self._mi_type = mi_type
|
663
663
|
self.ticker = getattr(MIs, mi_type)
|
664
664
|
|
665
|
+
@staticmethod
|
666
|
+
def ticker_to_mitype(ticker: str):
|
667
|
+
dict_fields = MIs._asdict()
|
668
|
+
reverse_map = {value: key for key, value in dict_fields.items()}
|
669
|
+
return reverse_map.get(ticker)
|
670
|
+
|
671
|
+
@staticmethod
|
672
|
+
def mitype_to_ticker(mi_type: str):
|
673
|
+
return getattr(MIs, mi_type)
|
674
|
+
|
665
675
|
@staticmethod
|
666
676
|
def caching_chart_data_mi_all(num=5):
|
667
677
|
mylogger.info(f"*** caching_chart_data_mi_all ***")
|
668
678
|
mylogger.debug(f"mi_type : {MIs._fields}")
|
669
679
|
MyLSTM.caching_chart_data([getattr(MIs, mi_type) for mi_type in MIs._fields], num=num)
|
670
680
|
|
681
|
+
@staticmethod
|
682
|
+
def bulk_get_chart_data(mi_types: List[str]) -> Dict[str, Optional[LSTMChartData]]:
|
683
|
+
ticker_data = MyLSTM.bulk_get_chart_data([MILSTM.mitype_to_ticker(mi_type) for mi_type in mi_types])
|
684
|
+
mi_data = {}
|
685
|
+
for ticker, data in ticker_data.items():
|
686
|
+
mi_data[MILSTM.ticker_to_mitype(ticker)] = data
|
687
|
+
return mi_data
|
671
688
|
|
672
689
|
|
@@ -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=L1gFXtBsjLXDxqUao8nf8eM9tTdkeoXw1zBCti_L9S4,29576
|
14
14
|
analyser_hj3415/analyser/tsa/myprophet.py,sha256=QHeIHinCZzMhuLpAqrMdy4E56MFbCGd89i9dR8cGXrw,18976
|
15
|
-
analyser_hj3415-4.4.
|
16
|
-
analyser_hj3415-4.4.
|
17
|
-
analyser_hj3415-4.4.
|
18
|
-
analyser_hj3415-4.4.
|
15
|
+
analyser_hj3415-4.4.1.dist-info/entry_points.txt,sha256=ZfjPnJuH8SzvhE9vftIPMBIofsc65IAWYOhqOC_L5ck,65
|
16
|
+
analyser_hj3415-4.4.1.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
|
17
|
+
analyser_hj3415-4.4.1.dist-info/METADATA,sha256=TN-WD9OC20JjcFEMQ4SHak1qZrS72HAjMT07wSTXOdU,6811
|
18
|
+
analyser_hj3415-4.4.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|