upgini 1.2.13a2__py3-none-any.whl → 1.2.13a4__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.
- upgini/__about__.py +1 -1
- upgini/autofe/binary.py +6 -8
- {upgini-1.2.13a2.dist-info → upgini-1.2.13a4.dist-info}/METADATA +1 -1
- {upgini-1.2.13a2.dist-info → upgini-1.2.13a4.dist-info}/RECORD +6 -6
- {upgini-1.2.13a2.dist-info → upgini-1.2.13a4.dist-info}/WHEEL +0 -0
- {upgini-1.2.13a2.dist-info → upgini-1.2.13a4.dist-info}/licenses/LICENSE +0 -0
upgini/__about__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.2.
|
|
1
|
+
__version__ = "1.2.13a4"
|
upgini/autofe/binary.py
CHANGED
|
@@ -132,7 +132,7 @@ class CombineThenFreq(PandasOperand):
|
|
|
132
132
|
self._loc(temp, value_counts)
|
|
133
133
|
|
|
134
134
|
|
|
135
|
-
class Distance:
|
|
135
|
+
class Distance(PandasOperand):
|
|
136
136
|
name: str = "dist"
|
|
137
137
|
is_binary: bool = True
|
|
138
138
|
output_type: Optional[str] = "float"
|
|
@@ -150,17 +150,15 @@ class Distance:
|
|
|
150
150
|
|
|
151
151
|
# row-wise dot product, handling None values
|
|
152
152
|
def __dot(self, left: pd.Series, right: pd.Series) -> pd.Series:
|
|
153
|
-
left = left.apply(lambda x: np.array(x)
|
|
154
|
-
right = right.apply(lambda x: np.array(x)
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
res = (left * right).apply(np.sum)
|
|
153
|
+
left = left.apply(lambda x: np.array(x))
|
|
154
|
+
right = right.apply(lambda x: np.array(x))
|
|
155
|
+
res = (left.dropna() * right.dropna()).apply(np.sum)
|
|
156
|
+
res = res.reindex(left.index.union(right.index))
|
|
158
157
|
return res
|
|
159
158
|
|
|
160
159
|
# Calculate the norm of a vector, handling None values
|
|
161
160
|
def __norm(self, vector: pd.Series) -> pd.Series:
|
|
162
|
-
|
|
163
|
-
vector = vector.apply(lambda x: np.array(x) if x is not None else np.zeros_like(vector[0]))
|
|
161
|
+
vector = vector.fillna(np.nan)
|
|
164
162
|
return np.sqrt(self.__dot(vector, vector))
|
|
165
163
|
|
|
166
164
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
upgini/__about__.py,sha256=
|
|
1
|
+
upgini/__about__.py,sha256=FCz2XUQlXzrSJIZwpE7MVdBagpn7lwlAw754ujNNr2Q,25
|
|
2
2
|
upgini/__init__.py,sha256=M64LwQTBa-5Jz24Zm2h8rWwlKQQ1J8nP7gGgIciS0WU,589
|
|
3
3
|
upgini/ads.py,sha256=nvuRxRx5MHDMgPr9SiU-fsqRdFaBv8p4_v1oqiysKpc,2714
|
|
4
4
|
upgini/dataset.py,sha256=olZ-OHSfBNoBSCo7R5t7uCLukI2nO7afpx_A-HCiJLk,31067
|
|
@@ -15,7 +15,7 @@ upgini/ads_management/__init__.py,sha256=qzyisOToVRP-tquAJD1PblZhNtMrOB8FiyF9Jvf
|
|
|
15
15
|
upgini/ads_management/ads_manager.py,sha256=igVbN2jz80Umb2BUJixmJVj-zx8unoKpecVo-R-nGdw,2648
|
|
16
16
|
upgini/autofe/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
upgini/autofe/all_operands.py,sha256=cCCB44qvkmuWyiRM5Xykx8tkHPIjQthrWyj67STWN80,2578
|
|
18
|
-
upgini/autofe/binary.py,sha256=
|
|
18
|
+
upgini/autofe/binary.py,sha256=i2Y0uAOXVORt-RgnkO0gM7jZz2l5j3jqYz_yBOT2gxk,7927
|
|
19
19
|
upgini/autofe/date.py,sha256=OpFc3Al0xO3qlESn2Uokfxw51ArVqmh3xngWwdrsaqE,9762
|
|
20
20
|
upgini/autofe/feature.py,sha256=eL7wABUhDKZzv3E-RPJNcyGwSfB0UptcfU2RbvsOks4,15082
|
|
21
21
|
upgini/autofe/groupby.py,sha256=r-xl_keZZgm_tpiEoDhjYSkT6NHv7a4cRQR4wJ4uCp8,3263
|
|
@@ -57,7 +57,7 @@ upgini/utils/sklearn_ext.py,sha256=13jQS_k7v0aUtudXV6nGUEWjttPQzAW9AFYL5wgEz9k,4
|
|
|
57
57
|
upgini/utils/target_utils.py,sha256=BVtDmrmFMKerSUWaNOIEdzsYHIFiODdpnWbE50QDPDc,7864
|
|
58
58
|
upgini/utils/track_info.py,sha256=G5Lu1xxakg2_TQjKZk4b5SvrHsATTXNVV3NbvWtT8k8,5663
|
|
59
59
|
upgini/utils/warning_counter.py,sha256=dIWBB4dI5XRRJZudvIlqlIYKEiwLLPcXarsZuYRt338,227
|
|
60
|
-
upgini-1.2.
|
|
61
|
-
upgini-1.2.
|
|
62
|
-
upgini-1.2.
|
|
63
|
-
upgini-1.2.
|
|
60
|
+
upgini-1.2.13a4.dist-info/METADATA,sha256=WqeEXF0ava0eEP1wD566T8AIgMX4V74H404kcc7k0DY,48579
|
|
61
|
+
upgini-1.2.13a4.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
62
|
+
upgini-1.2.13a4.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
|
|
63
|
+
upgini-1.2.13a4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|