upgini 1.2.98a3594.dev2__py3-none-any.whl → 1.2.98a3594.dev4__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.2.98a3594.dev2"
1
+ __version__ = "1.2.98a3594.dev4"
upgini/autofe/unary.py CHANGED
@@ -3,7 +3,7 @@ from typing import Dict, List, Optional
3
3
  import numpy as np
4
4
  import pandas as pd
5
5
 
6
- from upgini.autofe.operator import PandasOperator, VectorizableMixin
6
+ from upgini.autofe.operator import PandasOperator, ParametrizedOperator, VectorizableMixin
7
7
  from upgini.autofe.utils import pydantic_validator
8
8
 
9
9
 
@@ -200,8 +200,22 @@ class Cluster(PandasOperator):
200
200
  is_categorical: bool = True
201
201
 
202
202
 
203
- class OutlierDistance(PandasOperator):
203
+ class OutlierDistance(PandasOperator, ParametrizedOperator):
204
204
  name: str = "outlier_dist"
205
205
  is_unary: bool = True
206
206
  input_type: Optional[str] = "vector"
207
207
  output_type: Optional[str] = "float"
208
+ class_value: Optional[str] = None
209
+
210
+ def to_formula(self) -> str:
211
+ return f"outlier_dist_{self.class_value if self.class_value is not None else 'all'}"
212
+
213
+ @classmethod
214
+ def from_formula(cls, formula: str) -> Optional["OutlierDistance"]:
215
+ if formula.startswith("outlier_dist_"):
216
+ class_value = formula.split("_")[-1]
217
+ return cls(class_value=None if class_value == "all" else class_value)
218
+ return None
219
+
220
+ def get_centroid(self) -> np.ndarray:
221
+ pass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: upgini
3
- Version: 1.2.98a3594.dev2
3
+ Version: 1.2.98a3594.dev4
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=hYCrpgp0Ecg7_Z2UzMEKg0oCHe2HxxvjmIk1tULXMHQ,33
1
+ upgini/__about__.py,sha256=chXPRxJrE42cj3hA79buYBLSyHOcB1i0H_YLj9RzIh8,33
2
2
  upgini/__init__.py,sha256=LXSfTNU0HnlOkE69VCxkgIKDhWP-JFo_eBQ71OxTr5Y,261
3
3
  upgini/ads.py,sha256=nvuRxRx5MHDMgPr9SiU-fsqRdFaBv8p4_v1oqiysKpc,2714
4
4
  upgini/dataset.py,sha256=e6JDYTZ2AwC5aF-dqclKZKkiKrHo2f6cFmMQO2ZZmjM,32724
@@ -19,7 +19,7 @@ upgini/autofe/date.py,sha256=MM1S-6imNSzCDOhbNnmsc_bwSqUWBcS8vWAdHF8j1kY,11134
19
19
  upgini/autofe/feature.py,sha256=cu4xXjzVVF13ZV4RxuTrysK2qCfezlRCMOzCKRo1rNs,15558
20
20
  upgini/autofe/groupby.py,sha256=IYmQV9uoCdRcpkeWZj_kI3ObzoNCNx3ff3h8sTL01tk,3603
21
21
  upgini/autofe/operator.py,sha256=EOffJw6vKXpEh5yymqb1RFNJPxGxmnHdFRo9dB5SCFo,4969
22
- upgini/autofe/unary.py,sha256=UyGQiBIQiuZ0q2hfM1gjEetBfVXcsvgq5O-_C5oahIM,6113
22
+ upgini/autofe/unary.py,sha256=8ZMzOHLX2L0oXPNFnEQxGFl21p5pyQXNnTdL62mZstw,6667
23
23
  upgini/autofe/utils.py,sha256=dYrtyAM8Vcc_R8u4dNo54IsGrHKagTHDJTKhGho0bRg,2967
24
24
  upgini/autofe/vector.py,sha256=jHs0nNTOaHspYUlxW7fjQepk4cvr_JDQ65L1OCiVsds,1360
25
25
  upgini/autofe/timeseries/__init__.py,sha256=PGwwDAMwvkXl3el12tXVEmZUgDUvlmIPlXtROm6bD18,738
@@ -71,7 +71,7 @@ upgini/utils/target_utils.py,sha256=i3Xt5l9ybB2_nF_ma5cfPuL3OeFTs2dY2xDI0p4Azpg,
71
71
  upgini/utils/track_info.py,sha256=G5Lu1xxakg2_TQjKZk4b5SvrHsATTXNVV3NbvWtT8k8,5663
72
72
  upgini/utils/ts_utils.py,sha256=26vhC0pN7vLXK6R09EEkMK3Lwb9IVPH7LRdqFIQ3kPs,1383
73
73
  upgini/utils/warning_counter.py,sha256=-GRY8EUggEBKODPSuXAkHn9KnEQwAORC0mmz_tim-PM,254
74
- upgini-1.2.98a3594.dev2.dist-info/METADATA,sha256=yq3rKLzHlQrdw12Yx9Kic0gWsaeEWROQZCpKdI4gr5w,49538
75
- upgini-1.2.98a3594.dev2.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
76
- upgini-1.2.98a3594.dev2.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
77
- upgini-1.2.98a3594.dev2.dist-info/RECORD,,
74
+ upgini-1.2.98a3594.dev4.dist-info/METADATA,sha256=TeC7lG0RHtbeWI8xZ1wqa2SikxkK43pFnIhBNi6q9rI,49538
75
+ upgini-1.2.98a3594.dev4.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
76
+ upgini-1.2.98a3594.dev4.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
77
+ upgini-1.2.98a3594.dev4.dist-info/RECORD,,