upgini 1.1.110a1__py3-none-any.whl → 1.1.111__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.

@@ -131,6 +131,8 @@ class FeaturesEnricher(TransformerMixin):
131
131
  random_state: int = 42,
132
132
  cv: Optional[CVType] = None,
133
133
  detect_missing_search_keys: bool = True,
134
+ generate_features: Optional[List[str]] = None,
135
+ round_embeddings: Optional[int] = None,
134
136
  logs_enabled: bool = True,
135
137
  **kwargs,
136
138
  ):
@@ -203,8 +205,24 @@ class FeaturesEnricher(TransformerMixin):
203
205
  if self.runtime_parameters is None:
204
206
  self.runtime_parameters = RuntimeParameters()
205
207
  if self.runtime_parameters.properties is None:
206
- self.runtime_parameters.properties = {}
208
+ self.runtime_parameters.properties = dict()
207
209
  self.runtime_parameters.properties["shared_datasets"] = ",".join(shared_datasets)
210
+ if generate_features is not None:
211
+ if len(generate_features) > 1:
212
+ msg = bundle.get("too_many_generate_features")
213
+ self.logger.error(msg)
214
+ raise ValidationError(msg)
215
+ self.generate_features = generate_features
216
+ runtime_parameters = self.runtime_parameters or RuntimeParameters()
217
+ runtime_properties = runtime_parameters.properties or dict()
218
+ runtime_parameters["generate_features"] = ",".join(generate_features)
219
+ if round_embeddings is not None:
220
+ if not isinstance(round_embeddings, int) or round_embeddings < 0:
221
+ msg = bundle.get("invalid_round_embeddings")
222
+ self.logger.error(msg)
223
+ raise ValidationError(msg)
224
+ self.round_embeddings = round_embeddings
225
+ runtime_properties["round_embeddings"] = round_embeddings
208
226
 
209
227
  self.passed_features: List[str] = []
210
228
  self.feature_names_ = []
@@ -1295,7 +1313,7 @@ class FeaturesEnricher(TransformerMixin):
1295
1313
  def enrich():
1296
1314
  res, _ = self.__enrich(
1297
1315
  df_with_original_index,
1298
- validation_task.get_all_validation_raw_features(trace_id),
1316
+ validation_task.get_all_validation_raw_features(trace_id, metrics_calculation),
1299
1317
  validated_X,
1300
1318
  is_transform=True,
1301
1319
  )
@@ -56,6 +56,8 @@ no_connection_to_upgini=No connection to Upgini server https://search.upgini.com
56
56
  no_internet_connection=No internet connection from Jupyter server {} to initiate external data search with Upgini service, please try with Google Colab https://colab.research.google.com
57
57
  access_denied=Access denied
58
58
  unsupported_search_key=Search key {} not supported
59
+ too_many_generate_features=Too many columns passed in `generate_features` argument. Only one column supported to generate features now
60
+ invalid_round_embeddings=Argument `round_embeddings` should be non negative integer
59
61
 
60
62
  # Validation errors
61
63
  # params validation
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: upgini
3
- Version: 1.1.110a1
3
+ Version: 1.1.111
4
4
  Summary: Low-code feature search and enrichment library for machine learning
5
5
  Home-page: https://upgini.com/
6
6
  Author: Upgini Developers
@@ -2,7 +2,7 @@ upgini/__init__.py,sha256=asENHgEVHQBIkV-e_0IhE_ZWqkCG6398U3ZLrNzAH6k,407
2
2
  upgini/ads.py,sha256=mre6xn44wcC_fg63iLT_kTh4mViZqR9AKRJZAtpQz8Y,2592
3
3
  upgini/dataset.py,sha256=J4KbHjvPKiAjmEs0GVeaHy-nZLAJXwpgYVeYKv-lGi0,41095
4
4
  upgini/errors.py,sha256=BqpvfhW2jJW5fa5KXj0alhXatGl-WK4xTl309-QNLp8,959
5
- upgini/features_enricher.py,sha256=HLsWY15UyzzaDA7xdfHYtOEmzeDOCyV0z_TBGC5ttQg,112299
5
+ upgini/features_enricher.py,sha256=-1Oj8-Cy0LlCCNaHyPM2hIHPo7H9DPSL5cdKb5qT1QM,113360
6
6
  upgini/http.py,sha256=kgWj6wU1PbGPoGAbRvK35umXQ5zwEfEKeGy5Az0fss0,35479
7
7
  upgini/metadata.py,sha256=3PulMxpKFXAbmyqRh1GVzN5J_101YeZSH3h0LVe4ifc,5944
8
8
  upgini/metrics.py,sha256=uJhtGKgUUFnvdF16xscfe9AGDoDN6LqUV97RWDP39NU,14869
@@ -19,7 +19,7 @@ upgini/normalizer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
19
19
  upgini/normalizer/phone_normalizer.py,sha256=VIgLXuDuzzjPEXiy_LyDVLZKGaS7-le6Fh6T4D-TQDU,9930
20
20
  upgini/resource_bundle/__init__.py,sha256=M7GtS7KPQw9pinz8P2aQWXpSkD2YFwUPVGk1w92Pn84,7888
21
21
  upgini/resource_bundle/exceptions.py,sha256=KT-OnqA2J4OTfLjhbEl3KFZM2ci7EOPjqJuY_rXp3vs,622
22
- upgini/resource_bundle/strings.properties,sha256=66mJ8P3W3fBfhflIwSLrrJXvPvrE09CIqxDBqGuugi8,20042
22
+ upgini/resource_bundle/strings.properties,sha256=If9Ej4T8ZsiqByTijcIAgQyAQci_y-089OOdD19k5DE,20261
23
23
  upgini/sampler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
24
  upgini/sampler/base.py,sha256=X2PVsfZ3Rl7twpFDh5UWyxqY2K_jcMGxZ2NcHLwFRj4,6489
25
25
  upgini/sampler/random_under_sampler.py,sha256=whX_f_TtalHH8Seyn_7n3sX_TSiDHeYfALmme9saqDg,4082
@@ -39,8 +39,8 @@ upgini/utils/postal_code_utils.py,sha256=_8CR9tBqsPptQsmMUvnrCAmBaMIQSWH3JfJ4ly3
39
39
  upgini/utils/target_utils.py,sha256=3eHrDy_Dc9ozuOwHGnGA705m9glCxKmjB-DfLrflqiA,1370
40
40
  upgini/utils/track_info.py,sha256=O_oL4gy1jH0DVgtiUeZAW0YKCeRT4B_bzH_SZYkFaOE,4076
41
41
  upgini/utils/warning_counter.py,sha256=vnmdFo5-7GBkU2bK9h_uC0K0Y_wtfcYstxOdeRfacO0,228
42
- upgini-1.1.110a1.dist-info/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
43
- upgini-1.1.110a1.dist-info/METADATA,sha256=aS0uOMyQ5r6_KWwqAkd63eKasKR-Jri9IjF-6taOtGw,41110
44
- upgini-1.1.110a1.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
45
- upgini-1.1.110a1.dist-info/top_level.txt,sha256=OFhTGiDIWKl5gFI49qvWq1R9IKflPaE2PekcbDXDtx4,7
46
- upgini-1.1.110a1.dist-info/RECORD,,
42
+ upgini-1.1.111.dist-info/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
43
+ upgini-1.1.111.dist-info/METADATA,sha256=upni_OMilRlLQ0cxtue1OxoeMn3UDwNZCZ71Vi27FwM,41108
44
+ upgini-1.1.111.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
45
+ upgini-1.1.111.dist-info/top_level.txt,sha256=OFhTGiDIWKl5gFI49qvWq1R9IKflPaE2PekcbDXDtx4,7
46
+ upgini-1.1.111.dist-info/RECORD,,