upgini 1.1.300__py3-none-any.whl → 1.1.302__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.300"
1
+ __version__ = "1.1.302"
@@ -3186,7 +3186,9 @@ class FeaturesEnricher(TransformerMixin):
3186
3186
 
3187
3187
  if rows_to_drop is not None:
3188
3188
  self.logger.info(f"Before dropping target outliers size: {len(result_features)}")
3189
- result_features = result_features[~result_features[SYSTEM_RECORD_ID].isin(rows_to_drop[SYSTEM_RECORD_ID])]
3189
+ result_features = result_features[
3190
+ ~result_features[ENTITY_SYSTEM_RECORD_ID].isin(rows_to_drop[ENTITY_SYSTEM_RECORD_ID])
3191
+ ]
3190
3192
  self.logger.info(f"After dropping target outliers size: {len(result_features)}")
3191
3193
 
3192
3194
  result_eval_sets = {}
@@ -3219,11 +3221,11 @@ class FeaturesEnricher(TransformerMixin):
3219
3221
  result_train = result_train_features
3220
3222
 
3221
3223
  if drop_system_record_id:
3222
- if SYSTEM_RECORD_ID in result_train.columns:
3223
- result_train = result_train.drop(columns=SYSTEM_RECORD_ID)
3224
+ result_train = result_train.drop(columns=[SYSTEM_RECORD_ID, ENTITY_SYSTEM_RECORD_ID], errors="ignore")
3224
3225
  for eval_set_index in result_eval_sets.keys():
3225
- if SYSTEM_RECORD_ID in result_eval_sets[eval_set_index].columns:
3226
- result_eval_sets[eval_set_index] = result_eval_sets[eval_set_index].drop(columns=SYSTEM_RECORD_ID)
3226
+ result_eval_sets[eval_set_index] = result_eval_sets[eval_set_index].drop(
3227
+ columns=[SYSTEM_RECORD_ID, ENTITY_SYSTEM_RECORD_ID], errors="ignore"
3228
+ )
3227
3229
 
3228
3230
  return result_train, result_eval_sets
3229
3231
 
@@ -3481,6 +3483,9 @@ class FeaturesEnricher(TransformerMixin):
3481
3483
  is_transform=False,
3482
3484
  silent_mode=False,
3483
3485
  ):
3486
+ for _, key_type in search_keys.items():
3487
+ if not isinstance(key_type, SearchKey):
3488
+ raise ValidationError(self.bundle.get("unsupported_type_of_search_key").format(key_type))
3484
3489
  valid_search_keys = {}
3485
3490
  unsupported_search_keys = {
3486
3491
  SearchKey.IP_RANGE_FROM,
@@ -85,6 +85,7 @@ unregistered_only_personal_keys=Only personal search keys used. Api_key from pro
85
85
  search_key_not_found=Column `{}` from search_keys was not found in X dataframe: {}
86
86
  numeric_search_key_not_found=Index {} in search_keys is out of bounds for {} columns of X dataframe
87
87
  unsupported_search_key_type=Unsupported type of key in search_keys: {}
88
+ unsupported_type_of_search_key=Unsupported type of search key: {}. It should be a member of SearcKey
88
89
  search_key_country_and_country_code=\nWARNING: SearchKey.COUNTRY and country_code parameter were passed simultaniously. Parameter country_code will be ignored
89
90
  empty_search_key=Search key {} is empty. Please fill values or remove this search key
90
91
  single_constant_search_key=\nWARNING: Constant value detected for the {} search key in the X dataframe: {}.\nThat search key will add constant features for different y values.\nPlease add extra search keys with non constant values, like the COUNTRY, POSTAL_CODE, DATE, PHONE NUMBER, EMAIL/HEM or IPv4
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: upgini
3
- Version: 1.1.300
3
+ Version: 1.1.302
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,9 +1,9 @@
1
- upgini/__about__.py,sha256=IcfjUPTVJrTs-NV6tcVvLWMSPbW14GYerq2VeSrrzc0,24
1
+ upgini/__about__.py,sha256=-qFeTOSW0hTZsmYrk502kQwbd51FNaHb_oq4nYfeY38,24
2
2
  upgini/__init__.py,sha256=ObEtjFkIssl83qeKNMLpIQygfwK8TzztwiI43YTsAP0,353
3
3
  upgini/ads.py,sha256=nvuRxRx5MHDMgPr9SiU-fsqRdFaBv8p4_v1oqiysKpc,2714
4
4
  upgini/dataset.py,sha256=MOzBVsvzlHLxNfPWtMaXC_jIPeW7_gUvbSGeXnsPgNI,46158
5
5
  upgini/errors.py,sha256=2b_Wbo0OYhLUbrZqdLIx5jBnAsiD1Mcenh-VjR4HCTw,950
6
- upgini/features_enricher.py,sha256=nweJzEV8ZbDN5wvf5Gdf-HgcNz7711gNgmRxz4ZUopI,183112
6
+ upgini/features_enricher.py,sha256=PRiQGAmnm9jPXN4Uqus5l8RQIPAWPxsIBnIoEMnh6g8,183342
7
7
  upgini/http.py,sha256=bp6jWl422Icy3AhHMdCcJv5NjExE45gSMmzMTPJjPuk,42600
8
8
  upgini/lazy_import.py,sha256=EwoM0msNGbSmWBhGbrLDny1DSnOlvTxCjmMKPxYlDms,610
9
9
  upgini/metadata.py,sha256=wOFCJruDBhC4Hiiiqf8GeHZnnm6rhJy8t6fg5B0Z4TQ,10209
@@ -30,7 +30,7 @@ upgini/normalizer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
30
30
  upgini/normalizer/phone_normalizer.py,sha256=EzTaahk6myRv6ZXgbyVFGY4kpo_2VlQgOrm5_lfbmNI,9996
31
31
  upgini/resource_bundle/__init__.py,sha256=S5F2G47pnJd2LDpmFsjDqEwiKkP8Hm-hcseDbMka6Ko,8345
32
32
  upgini/resource_bundle/exceptions.py,sha256=5fRvx0_vWdE1-7HcSgF0tckB4A9AKyf5RiinZkInTsI,621
33
- upgini/resource_bundle/strings.properties,sha256=6jYqcxj06ZopXwr5YYMGXX1QiNNJNFo2SuwAR0qleRk,26358
33
+ upgini/resource_bundle/strings.properties,sha256=WZAuYPX2Dpn6BHoA3RX8uvMNMr-yJE2fF7Gz0i24x2s,26459
34
34
  upgini/resource_bundle/strings_widget.properties,sha256=gOdqvZWntP2LCza_tyVk1_yRYcG4c04K9sQOAVhF_gw,1577
35
35
  upgini/sampler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
36
  upgini/sampler/base.py,sha256=7GpjYqjOp58vYcJLiX__1R5wjUlyQbxvHJ2klFnup_M,6389
@@ -57,7 +57,7 @@ upgini/utils/sklearn_ext.py,sha256=13jQS_k7v0aUtudXV6nGUEWjttPQzAW9AFYL5wgEz9k,4
57
57
  upgini/utils/target_utils.py,sha256=Y96_PJ5cC-WsEbeqg20v9uqywDQobLoTb-xoP7S3o4E,7807
58
58
  upgini/utils/track_info.py,sha256=G5Lu1xxakg2_TQjKZk4b5SvrHsATTXNVV3NbvWtT8k8,5663
59
59
  upgini/utils/warning_counter.py,sha256=dIWBB4dI5XRRJZudvIlqlIYKEiwLLPcXarsZuYRt338,227
60
- upgini-1.1.300.dist-info/METADATA,sha256=hLE9o5ZxxN1PnP4WR6ZUnp5yFpEb1cbVSwWEOiQDZBE,48153
61
- upgini-1.1.300.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
62
- upgini-1.1.300.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
63
- upgini-1.1.300.dist-info/RECORD,,
60
+ upgini-1.1.302.dist-info/METADATA,sha256=Yf0pExfLbj0GqemC-7A1cIfyX1ZKQi_MmA7NNL0FM_g,48153
61
+ upgini-1.1.302.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
62
+ upgini-1.1.302.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
63
+ upgini-1.1.302.dist-info/RECORD,,