upgini 1.2.146a1__py3-none-any.whl → 1.2.146a2__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.146a1"
1
+ __version__ = "1.2.146a2"
upgini/dataset.py CHANGED
@@ -370,7 +370,10 @@ class Dataset:
370
370
  self.data["valid_keys"] = self.data["valid_keys"] + self.data[f"{col}_is_valid"]
371
371
  self.data.drop(columns=f"{col}_is_valid", inplace=True)
372
372
 
373
- self.data["is_valid"] = self.data["valid_keys"] > 0
373
+ if len(keys_to_validate) > 0:
374
+ self.data["is_valid"] = self.data["valid_keys"] > 0
375
+ else:
376
+ self.data["is_valid"] = True
374
377
  self.data["is_valid"] = self.data["is_valid"] & self.data["valid_mandatory"]
375
378
  self.data.drop(columns=["valid_keys", "valid_mandatory"], inplace=True)
376
379
 
@@ -3000,9 +3000,10 @@ if response.status_code == 200:
3000
3000
 
3001
3001
  return selected_input_columns + selected_generated_features
3002
3002
 
3003
- def _validate_empty_search_keys(self, df: pd.DataFrame, search_keys: dict[str, SearchKey], is_transform: bool = False):
3003
+ def _validate_empty_search_keys(
3004
+ self, search_keys: dict[str, SearchKey], is_transform: bool = False
3005
+ ):
3004
3006
  if (search_keys is None or len(search_keys) == 0) and self.country_code is None:
3005
- self._add_current_date_as_key(df, search_keys, self.bundle, silent=is_transform)
3006
3007
  if is_transform:
3007
3008
  self.logger.debug("Transform started without search_keys")
3008
3009
  # return
@@ -4803,7 +4804,7 @@ if response.status_code == 200:
4803
4804
 
4804
4805
  self.logger.info(f"Prepared search keys: {valid_search_keys}")
4805
4806
 
4806
- self._validate_empty_search_keys(valid_search_keys, is_transform=is_transform)
4807
+ # x = self._validate_empty_search_keys(x, valid_search_keys, is_transform=is_transform)
4807
4808
 
4808
4809
  return valid_search_keys
4809
4810
 
@@ -220,7 +220,7 @@ email_detected=Emails detected in column `{}`. It will be used as a search key\n
220
220
  email_detected_not_registered=Emails detected in column `{}`. It can be used only with api_key from profile.upgini.com\nSee docs to turn off the automatic detection: https://github.com/upgini/upgini/blob/main/README.md#turn-off-autodetection-for-search-key-columns\n
221
221
  phone_detected=Phone numbers detected in column `{}`. It can be used only with api_key from profile.upgini.com\nSee docs to turn off the automatic detection: https://github.com/upgini/upgini/blob/main/README.md#turn-off-autodetection-for-search-key-columns\n
222
222
  phone_detected_not_registered=Phone numbers detected in column `{}`. It can be used only with api_key from profile.upgini.com\nSee docs to turn off the automatic detection: https://github.com/upgini/upgini/blob/main/README.md#turn-off-autodetection-for-search-key-columns\n
223
- target_type_detected=\nDetected task type: {}. Reason: {}\nYou can set task type manually with argument `model_task_type` of FeaturesEnricher constructor if task type detected incorrectly\n
223
+ target_type_detected=Detected task type: {}. Reason: {}\nYou can set task type manually with argument `model_task_type` of FeaturesEnricher constructor if task type detected incorrectly\n
224
224
  binary_target_reason=only two unique label-values observed
225
225
  non_numeric_multiclass_reason=non-numeric label values observed
226
226
  few_unique_label_multiclass_reason=few unique label-values observed and can be considered as categorical
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: upgini
3
- Version: 1.2.146a1
3
+ Version: 1.2.146a2
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=sKvJiwtG_K7p_zLr6JsuD4cXouzo0njg5S1FhZ85A4M,26
1
+ upgini/__about__.py,sha256=CaqiZnz1z_roBKPQB2MiuGutl1Z1t1GG-7gzLCzKPL0,26
2
2
  upgini/__init__.py,sha256=LXSfTNU0HnlOkE69VCxkgIKDhWP-JFo_eBQ71OxTr5Y,261
3
3
  upgini/ads.py,sha256=nvuRxRx5MHDMgPr9SiU-fsqRdFaBv8p4_v1oqiysKpc,2714
4
- upgini/dataset.py,sha256=bkUpUC1sdhCQcLPysB7BC8WiFDPfjiJj1SztExpv0nA,33735
4
+ upgini/dataset.py,sha256=JAxrKtzUvkqL2DGz6JbRLvGnvMnmH--Dc7YYIhJmwac,33832
5
5
  upgini/errors.py,sha256=2b_Wbo0OYhLUbrZqdLIx5jBnAsiD1Mcenh-VjR4HCTw,950
6
- upgini/features_enricher.py,sha256=ntrjtYSqXS_ufh0p2HrfaVPxANwcjUTsTwZ3E5aPk0E,235332
6
+ upgini/features_enricher.py,sha256=rwK0pXjnrSNjyCfg09aWgUJsnRi22uh9EaDekf-6hew,235244
7
7
  upgini/http.py,sha256=y26x4TQVYuEM3jz8JdASxSyBtvBemUkFf-FmX25sx-s,44356
8
8
  upgini/metadata.py,sha256=iYlL91g2PMHjiPIySIZb4IzIIUsPaAMIiV2It95GAjA,12866
9
9
  upgini/metrics.py,sha256=KCPE_apPN-9BIdv6GqASbJVaB_gBcy8wzNApAcyaGo4,46020
@@ -38,7 +38,7 @@ upgini/normalizer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
38
38
  upgini/normalizer/normalize_utils.py,sha256=mnOFU39oOsv_UhJVArl8BSocZlNP0xzgeAbSYI14Zjs,8492
39
39
  upgini/resource_bundle/__init__.py,sha256=S5F2G47pnJd2LDpmFsjDqEwiKkP8Hm-hcseDbMka6Ko,8345
40
40
  upgini/resource_bundle/exceptions.py,sha256=5fRvx0_vWdE1-7HcSgF0tckB4A9AKyf5RiinZkInTsI,621
41
- upgini/resource_bundle/strings.properties,sha256=GvOX9GZJaWxlL9X3FqtF3LyvPGVKyJniCzb5LVNiXwo,29710
41
+ upgini/resource_bundle/strings.properties,sha256=yuX7wZ8OV0_zqz8l-a--Sc6CqBtZSNQNY5cVRasRRSs,29708
42
42
  upgini/resource_bundle/strings_widget.properties,sha256=gOdqvZWntP2LCza_tyVk1_yRYcG4c04K9sQOAVhF_gw,1577
43
43
  upgini/sampler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
44
44
  upgini/sampler/base.py,sha256=Fva2FEhLiNRPZ9Q6uOtJRtRzwsayjv7aphalAZO_4lc,6452
@@ -74,7 +74,7 @@ upgini/utils/target_utils.py,sha256=CihpV6SC95HwtlMH60rGAUzVDa4Id0Bva8ySprmNHlE,
74
74
  upgini/utils/track_info.py,sha256=NDKeQTUlZaYp15UoP-xLKGoDoJQ0drbDMwB0g9R0PUg,6427
75
75
  upgini/utils/ts_utils.py,sha256=26vhC0pN7vLXK6R09EEkMK3Lwb9IVPH7LRdqFIQ3kPs,1383
76
76
  upgini/utils/warning_counter.py,sha256=-GRY8EUggEBKODPSuXAkHn9KnEQwAORC0mmz_tim-PM,254
77
- upgini-1.2.146a1.dist-info/METADATA,sha256=HdHng_sOdGscJRajNp7_GI01Zu8vxGiAHBKzlPiumD8,51166
78
- upgini-1.2.146a1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
79
- upgini-1.2.146a1.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
80
- upgini-1.2.146a1.dist-info/RECORD,,
77
+ upgini-1.2.146a2.dist-info/METADATA,sha256=v5SEsK8mKw0EFiebVeHjngcjLPk5QbCU5iw6qsBVgQc,51166
78
+ upgini-1.2.146a2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
79
+ upgini-1.2.146a2.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
80
+ upgini-1.2.146a2.dist-info/RECORD,,