analyser_hj3415 4.2.2__py3-none-any.whl → 4.2.4__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/common.py +2 -2
- analyser_hj3415/analyser/tsa/lstm.py +1 -1
- {analyser_hj3415-4.2.2.dist-info → analyser_hj3415-4.2.4.dist-info}/METADATA +1 -1
- {analyser_hj3415-4.2.2.dist-info → analyser_hj3415-4.2.4.dist-info}/RECORD +6 -6
- {analyser_hj3415-4.2.2.dist-info → analyser_hj3415-4.2.4.dist-info}/WHEEL +0 -0
- {analyser_hj3415-4.2.2.dist-info → analyser_hj3415-4.2.4.dist-info}/entry_points.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
import numpy as np
|
2
2
|
from dataclasses import dataclass, field
|
3
|
-
from typing import List
|
3
|
+
from typing import List, Optional
|
4
4
|
import pandas as pd
|
5
5
|
from marshmallow import fields, Schema
|
6
6
|
from marshmallow_dataclass import class_schema
|
@@ -55,7 +55,7 @@ class PandasTimestampField(fields.DateTime):
|
|
55
55
|
class ChartPoint:
|
56
56
|
"""prices 리스트의 각 원소(x, y)를 표현할 데이터 클래스"""
|
57
57
|
x: pd.Timestamp = field(metadata={"marshmallow_field": PandasTimestampField()})
|
58
|
-
y: float
|
58
|
+
y: Optional[float] = field(default=None, metadata={"marshmallow_field": fields.Float(allow_none=True)})
|
59
59
|
|
60
60
|
|
61
61
|
|
@@ -529,7 +529,7 @@ class MyLSTM:
|
|
529
529
|
data = LSTMChartData(
|
530
530
|
ticker=self.ticker,
|
531
531
|
labels=merged_df["ds"].tolist(),
|
532
|
-
prices=[{"x": ds, "y": y} for ds, y in zip(merged_df["ds"], merged_df["y"])
|
532
|
+
prices = [{"x": ds, "y": None if pd.isna(y) else y} for ds, y in zip(merged_df["ds"], merged_df["y"])], # type: ignore
|
533
533
|
future_prices=[{"x": ds, "y": future_price} for ds, future_price in zip(merged_df["ds"], merged_df["future_price"])], # type: ignore
|
534
534
|
grade=lstm_grade,
|
535
535
|
num=num_in,
|
@@ -8,10 +8,10 @@ analyser_hj3415/analyser/eval/growth.py,sha256=tlHxLx4u5h7bNG0T8ViJujX20QllfrSaB
|
|
8
8
|
analyser_hj3415/analyser/eval/mil.py,sha256=m1Ca7U7IR3A3tbRYAw8wG7SQsI-_LzwYdY9xfM9G8II,15426
|
9
9
|
analyser_hj3415/analyser/eval/red.py,sha256=iA4wpuayJalnlwn2SypsHuWPcthvxvNx2CleDraucFs,12168
|
10
10
|
analyser_hj3415/analyser/tsa/__init__.py,sha256=pg20ZQRABedTdaIoOr5t043RNKtJ7ji_WmnZrD1IhPg,147
|
11
|
-
analyser_hj3415/analyser/tsa/common.py,sha256=
|
12
|
-
analyser_hj3415/analyser/tsa/lstm.py,sha256=
|
11
|
+
analyser_hj3415/analyser/tsa/common.py,sha256=msUPowjFMxOqWqGn5Q_FFzijiuYBGOBrEBckxvV2deg,1979
|
12
|
+
analyser_hj3415/analyser/tsa/lstm.py,sha256=iWc5P9PBEINR7D9i4TSgW0ZaqVKJ11HD1KiRlaDGF_0,29009
|
13
13
|
analyser_hj3415/analyser/tsa/prophet.py,sha256=g6-MLOOdfCwmYGoPgfCDh3FZp1FDUbqoWr5WG2kvzEI,17350
|
14
|
-
analyser_hj3415-4.2.
|
15
|
-
analyser_hj3415-4.2.
|
16
|
-
analyser_hj3415-4.2.
|
17
|
-
analyser_hj3415-4.2.
|
14
|
+
analyser_hj3415-4.2.4.dist-info/entry_points.txt,sha256=ZfjPnJuH8SzvhE9vftIPMBIofsc65IAWYOhqOC_L5ck,65
|
15
|
+
analyser_hj3415-4.2.4.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
|
16
|
+
analyser_hj3415-4.2.4.dist-info/METADATA,sha256=J4kASlQkRszM38PigZqwesev4DEf9yLRh08Q_hfROXY,6777
|
17
|
+
analyser_hj3415-4.2.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|