analyser_hj3415 4.2.2__tar.gz → 4.2.4__tar.gz

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.
Files changed (26) hide show
  1. {analyser_hj3415-4.2.2 → analyser_hj3415-4.2.4}/PKG-INFO +1 -1
  2. {analyser_hj3415-4.2.2 → analyser_hj3415-4.2.4}/analyser_hj3415/analyser/tsa/common.py +2 -2
  3. {analyser_hj3415-4.2.2 → analyser_hj3415-4.2.4}/analyser_hj3415/analyser/tsa/lstm.py +1 -1
  4. {analyser_hj3415-4.2.2 → analyser_hj3415-4.2.4}/pyproject.toml +1 -1
  5. {analyser_hj3415-4.2.2 → analyser_hj3415-4.2.4}/.gitignore +0 -0
  6. {analyser_hj3415-4.2.2 → analyser_hj3415-4.2.4}/README.md +0 -0
  7. {analyser_hj3415-4.2.2 → analyser_hj3415-4.2.4}/analyser_hj3415/__init__.py +0 -0
  8. {analyser_hj3415-4.2.2 → analyser_hj3415-4.2.4}/analyser_hj3415/analyser/__init__.py +0 -0
  9. {analyser_hj3415-4.2.2 → analyser_hj3415-4.2.4}/analyser_hj3415/analyser/eval/__init__.py +0 -0
  10. {analyser_hj3415-4.2.2 → analyser_hj3415-4.2.4}/analyser_hj3415/analyser/eval/blue.py +0 -0
  11. {analyser_hj3415-4.2.2 → analyser_hj3415-4.2.4}/analyser_hj3415/analyser/eval/common.py +0 -0
  12. {analyser_hj3415-4.2.2 → analyser_hj3415-4.2.4}/analyser_hj3415/analyser/eval/growth.py +0 -0
  13. {analyser_hj3415-4.2.2 → analyser_hj3415-4.2.4}/analyser_hj3415/analyser/eval/mil.py +0 -0
  14. {analyser_hj3415-4.2.2 → analyser_hj3415-4.2.4}/analyser_hj3415/analyser/eval/red.py +0 -0
  15. {analyser_hj3415-4.2.2 → analyser_hj3415-4.2.4}/analyser_hj3415/analyser/tsa/__init__.py +0 -0
  16. {analyser_hj3415-4.2.2 → analyser_hj3415-4.2.4}/analyser_hj3415/analyser/tsa/prophet.py +0 -0
  17. {analyser_hj3415-4.2.2 → analyser_hj3415-4.2.4}/analyser_hj3415/cli.py +0 -0
  18. {analyser_hj3415-4.2.2 → analyser_hj3415-4.2.4}/archive/deprecated/compile.py +0 -0
  19. {analyser_hj3415-4.2.2 → analyser_hj3415-4.2.4}/archive/deprecated/compile2.py +0 -0
  20. {analyser_hj3415-4.2.2 → analyser_hj3415-4.2.4}/archive/deprecated/lstm.py +0 -0
  21. {analyser_hj3415-4.2.2 → analyser_hj3415-4.2.4}/archive/deprecated/prophet.py +0 -0
  22. {analyser_hj3415-4.2.2 → analyser_hj3415-4.2.4}/archive/deprecated/test_compile.py +0 -0
  23. {analyser_hj3415-4.2.2 → analyser_hj3415-4.2.4}/archive/workroom/mysklearn.py +0 -0
  24. {analyser_hj3415-4.2.2 → analyser_hj3415-4.2.4}/archive/workroom/mysklearn2.py +0 -0
  25. {analyser_hj3415-4.2.2 → analyser_hj3415-4.2.4}/archive/workroom/score.py +0 -0
  26. {analyser_hj3415-4.2.2 → analyser_hj3415-4.2.4}/archive/workroom/trash.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: analyser_hj3415
3
- Version: 4.2.2
3
+ Version: 4.2.4
4
4
  Summary: Stock analyser and database processing programs
5
5
  Requires-Python: >=3.6
6
6
  Description-Content-Type: text/markdown
@@ -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"]) if pd.notna(y)], # type: ignore
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,
@@ -5,7 +5,7 @@ build-backend = "flit_core.buildapi"
5
5
 
6
6
  [project]
7
7
  name = "analyser_hj3415"
8
- version = "4.2.2"
8
+ version = "4.2.4"
9
9
  description = "Stock analyser and database processing programs"
10
10
  readme = "README.md"
11
11
  requires-python = ">=3.6"