upgini 1.1.280a3418.post7__py3-none-any.whl → 1.1.280a3418.post9__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.

Potentially problematic release.


This version of upgini might be problematic. Click here for more details.

upgini/__about__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "1.1.280a3418-7"
1
+ __version__ = "1.1.280a3418-9"
upgini/autofe/date.py CHANGED
@@ -28,6 +28,17 @@ class DateDiff(PandasOperand, DateDiffMixin):
28
28
  is_binary = True
29
29
  has_symmetry_importance = True
30
30
 
31
+ def get_params(self) -> Dict[str, str]:
32
+ res = super().get_params()
33
+ res.update(
34
+ {
35
+ "diff_unit": self.diff_unit,
36
+ "left_unit": self.left_unit,
37
+ "right_unit": self.right_unit,
38
+ }
39
+ )
40
+ return res
41
+
31
42
  def calculate_binary(self, left: pd.Series, right: pd.Series) -> pd.Series:
32
43
  left = self._convert_to_date(left, self.left_unit)
33
44
  right = self._convert_to_date(right, self.right_unit)
@@ -43,6 +54,17 @@ class DateDiffType2(PandasOperand, DateDiffMixin):
43
54
  is_binary = True
44
55
  has_symmetry_importance = True
45
56
 
57
+ def get_params(self) -> Dict[str, str]:
58
+ res = super().get_params()
59
+ res.update(
60
+ {
61
+ "diff_unit": self.diff_unit,
62
+ "left_unit": self.left_unit,
63
+ "right_unit": self.right_unit,
64
+ }
65
+ )
66
+ return res
67
+
46
68
  def calculate_binary(self, left: pd.Series, right: pd.Series) -> pd.Series:
47
69
  left = self._convert_to_date(left, self.left_unit)
48
70
  right = self._convert_to_date(right, self.right_unit)
@@ -65,6 +87,15 @@ class DateListDiff(PandasOperand, DateDiffMixin):
65
87
  has_symmetry_importance = True
66
88
  aggregation: str
67
89
 
90
+ def get_params(self) -> Dict[str, str]:
91
+ res = super().get_params()
92
+ res.update(
93
+ {
94
+ "aggregation": self.aggregation,
95
+ }
96
+ )
97
+ return res
98
+
68
99
  def __init__(self, **data: Any) -> None:
69
100
  if "name" not in data:
70
101
  data["name"] = f"date_diff_{data.get('aggregation')}"
upgini/autofe/feature.py CHANGED
@@ -19,6 +19,9 @@ class Column:
19
19
  def get_display_name(self, cache: bool = True, shorten: bool = False, **kwargs) -> str:
20
20
  return self.name
21
21
 
22
+ def set_op_params(self, params: Dict[str, str]) -> "Column":
23
+ return self
24
+
22
25
  def rename_columns(self, mapping: Dict[str, str]) -> "Column":
23
26
  self.name = self._unhash(mapping.get(self.name) or self.name)
24
27
  return self
@@ -74,6 +77,8 @@ class Feature:
74
77
 
75
78
  def set_op_params(self, params: Dict[str, str]) -> "Feature":
76
79
  self.op.set_params(params)
80
+ for child in self.children:
81
+ child.set_op_params(params)
77
82
  return self
78
83
 
79
84
  def get_hash(self) -> str:
upgini/autofe/operand.py CHANGED
@@ -26,8 +26,8 @@ class Operand(BaseModel):
26
26
  return self
27
27
 
28
28
  def get_params(self) -> Dict[str, str]:
29
- res = {"alias": self.alias}
30
- res.update(self.params)
29
+ res = {"alias": self.alias} if self.alias is not None else {}
30
+ res.update(self.params or {})
31
31
  return res
32
32
 
33
33
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: upgini
3
- Version: 1.1.280a3418.post7
3
+ Version: 1.1.280a3418.post9
4
4
  Summary: Intelligent data search & enrichment for Machine Learning
5
5
  Project-URL: Bug Reports, https://github.com/upgini/upgini/issues
6
6
  Project-URL: Homepage, https://upgini.com/
@@ -1,4 +1,4 @@
1
- upgini/__about__.py,sha256=rXbqDjHd5Lu41C99LyLDkJYRnh8DhlEfpdAaAbyhJk4,31
1
+ upgini/__about__.py,sha256=HUxcoWb7PDkUMAg3NpodY0SH4aBbqofixRDr2feuzo8,31
2
2
  upgini/__init__.py,sha256=asENHgEVHQBIkV-e_0IhE_ZWqkCG6398U3ZLrNzAH6k,407
3
3
  upgini/ads.py,sha256=nvuRxRx5MHDMgPr9SiU-fsqRdFaBv8p4_v1oqiysKpc,2714
4
4
  upgini/dataset.py,sha256=uiFY-P8te7-zigib1hGWRtW5v0X7chxPM0hJFdixAN8,45623
@@ -15,10 +15,10 @@ upgini/ads_management/ads_manager.py,sha256=igVbN2jz80Umb2BUJixmJVj-zx8unoKpecVo
15
15
  upgini/autofe/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  upgini/autofe/all_operands.py,sha256=7UyvmmqGSqQu4kDgoFwQRKY__b9xKDk3Fpp2-H8A7AA,2399
17
17
  upgini/autofe/binary.py,sha256=441BRuqMsxlxuw4c8rMZB6h5EpRdVMk-bVa03U7T5Hg,3973
18
- upgini/autofe/date.py,sha256=y3l97i_TIBaCJ-MuvQEwk5Ch6ofPsbqPzPSwn1qRS60,5924
19
- upgini/autofe/feature.py,sha256=8ugRW-Ckc-SYNQawgEluoAzJ_oM5v6y9r5Qx_E-C14o,11977
18
+ upgini/autofe/date.py,sha256=4HM9HkEqZA5Y3FZMDeo3eBtXvaHERONghm3yZgrQQ6Y,6718
19
+ upgini/autofe/feature.py,sha256=_xmoYsZ2QQk377I4of9io6VvU38W0twpwjWyX3n1gqA,12139
20
20
  upgini/autofe/groupby.py,sha256=4WjDzQxqpZxB79Ih4ihMMI5GDxaFqiH6ZelfV82ClT4,3091
21
- upgini/autofe/operand.py,sha256=ipJesG5TNpTujcmBlWrY_2C_AAqJDcdJcuDiOJ9tVFI,2866
21
+ upgini/autofe/operand.py,sha256=gWyxKM5tHESgrruN6J0CATIMeCPMBhiKHbVCCAL8M3Q,2906
22
22
  upgini/autofe/unary.py,sha256=v-l3aiE5hj6kurvh6adCQL8W3X9u9a7RVbS_WPR2qlw,3146
23
23
  upgini/autofe/vector.py,sha256=dLxfAstJs-gw_OQ1xxoxcM6pVzORlV0HVzdzt7cLXVQ,606
24
24
  upgini/data_source/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -56,7 +56,7 @@ upgini/utils/sklearn_ext.py,sha256=c23MGSUVfxLnaDWKAxavHgnOtm5dGKkF3YswdWQcFzs,4
56
56
  upgini/utils/target_utils.py,sha256=Y96_PJ5cC-WsEbeqg20v9uqywDQobLoTb-xoP7S3o4E,7807
57
57
  upgini/utils/track_info.py,sha256=G5Lu1xxakg2_TQjKZk4b5SvrHsATTXNVV3NbvWtT8k8,5663
58
58
  upgini/utils/warning_counter.py,sha256=dIWBB4dI5XRRJZudvIlqlIYKEiwLLPcXarsZuYRt338,227
59
- upgini-1.1.280a3418.post7.dist-info/METADATA,sha256=SYgRBlIzSepnmTT2cGMBw3NM6gha3ug1qLytIY1k6mM,48129
60
- upgini-1.1.280a3418.post7.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
61
- upgini-1.1.280a3418.post7.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
62
- upgini-1.1.280a3418.post7.dist-info/RECORD,,
59
+ upgini-1.1.280a3418.post9.dist-info/METADATA,sha256=6WH8uf1vAgFn6Dg_xhJtkbv97tU-DK9-GBW5KDUodVA,48129
60
+ upgini-1.1.280a3418.post9.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
61
+ upgini-1.1.280a3418.post9.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
62
+ upgini-1.1.280a3418.post9.dist-info/RECORD,,