upgini 1.1.280a3418.post8__py3-none-any.whl → 1.1.280a3418.post10__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 +1 -1
- upgini/autofe/date.py +32 -1
- upgini/autofe/feature.py +10 -1
- upgini/autofe/operand.py +1 -1
- {upgini-1.1.280a3418.post8.dist-info → upgini-1.1.280a3418.post10.dist-info}/METADATA +1 -1
- {upgini-1.1.280a3418.post8.dist-info → upgini-1.1.280a3418.post10.dist-info}/RECORD +8 -8
- {upgini-1.1.280a3418.post8.dist-info → upgini-1.1.280a3418.post10.dist-info}/WHEEL +0 -0
- {upgini-1.1.280a3418.post8.dist-info → upgini-1.1.280a3418.post10.dist-info}/licenses/LICENSE +0 -0
upgini/__about__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.1.280a3418-
|
|
1
|
+
__version__ = "1.1.280a3418-10"
|
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, Optional[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, Optional[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, Optional[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')}"
|
|
@@ -130,7 +161,7 @@ class DatePercentile(PandasOperand):
|
|
|
130
161
|
zero_bounds: Optional[List[float]]
|
|
131
162
|
step: int = 30
|
|
132
163
|
|
|
133
|
-
def get_params(self) -> Dict[str, str]:
|
|
164
|
+
def get_params(self) -> Dict[str, Optional[str]]:
|
|
134
165
|
res = super().get_params()
|
|
135
166
|
res.update(
|
|
136
167
|
{
|
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
|
|
@@ -72,8 +75,14 @@ class Feature:
|
|
|
72
75
|
self.cached_display_name = cached_display_name
|
|
73
76
|
self.alias = alias
|
|
74
77
|
|
|
75
|
-
def set_op_params(self, params: Dict[str, str]) -> "Feature":
|
|
78
|
+
def set_op_params(self, params: Optional[Dict[str, str]]) -> "Feature":
|
|
79
|
+
obj_dict = self.op.dict().copy()
|
|
80
|
+
obj_dict.update(params or {})
|
|
81
|
+
self.op = self.op.__class__.parse_obj(obj_dict)
|
|
76
82
|
self.op.set_params(params)
|
|
83
|
+
|
|
84
|
+
for child in self.children:
|
|
85
|
+
child.set_op_params(params)
|
|
77
86
|
return self
|
|
78
87
|
|
|
79
88
|
def get_hash(self) -> str:
|
upgini/autofe/operand.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: upgini
|
|
3
|
-
Version: 1.1.280a3418.
|
|
3
|
+
Version: 1.1.280a3418.post10
|
|
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=
|
|
1
|
+
upgini/__about__.py,sha256=dmfbxwIubpazkuRbZUmqQwuEKtDwBSXJuDdQN0rHZuY,32
|
|
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=
|
|
19
|
-
upgini/autofe/feature.py,sha256=
|
|
18
|
+
upgini/autofe/date.py,sha256=XeTJIkPzauYXgI3n5E8h4353PhZRZ7LOpQGHA4DMPx4,6758
|
|
19
|
+
upgini/autofe/feature.py,sha256=x7sumlIZqSE020XAkoykaesUjmmdYhaa0iFPKxBuDXo,12285
|
|
20
20
|
upgini/autofe/groupby.py,sha256=4WjDzQxqpZxB79Ih4ihMMI5GDxaFqiH6ZelfV82ClT4,3091
|
|
21
|
-
upgini/autofe/operand.py,sha256=
|
|
21
|
+
upgini/autofe/operand.py,sha256=JjEVT1U3kY9NDjUPMdoki7Oa8hMDG0-_h_NklVjIFyc,2882
|
|
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.
|
|
60
|
-
upgini-1.1.280a3418.
|
|
61
|
-
upgini-1.1.280a3418.
|
|
62
|
-
upgini-1.1.280a3418.
|
|
59
|
+
upgini-1.1.280a3418.post10.dist-info/METADATA,sha256=IYik9d-rA5UCa6NmuR2N8bfOHJq-T-mw2AVzXGfnFyQ,48130
|
|
60
|
+
upgini-1.1.280a3418.post10.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
|
|
61
|
+
upgini-1.1.280a3418.post10.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
|
|
62
|
+
upgini-1.1.280a3418.post10.dist-info/RECORD,,
|
|
File without changes
|
{upgini-1.1.280a3418.post8.dist-info → upgini-1.1.280a3418.post10.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|