upgini 1.2.145a4065.dev1__py3-none-any.whl → 1.2.146a1__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 +1 -1
- upgini/features_enricher.py +11 -11
- {upgini-1.2.145a4065.dev1.dist-info → upgini-1.2.146a1.dist-info}/METADATA +2 -2
- {upgini-1.2.145a4065.dev1.dist-info → upgini-1.2.146a1.dist-info}/RECORD +6 -6
- {upgini-1.2.145a4065.dev1.dist-info → upgini-1.2.146a1.dist-info}/WHEEL +1 -1
- {upgini-1.2.145a4065.dev1.dist-info → upgini-1.2.146a1.dist-info}/licenses/LICENSE +0 -0
upgini/__about__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.2.
|
|
1
|
+
__version__ = "1.2.146a1"
|
upgini/features_enricher.py
CHANGED
|
@@ -3000,15 +3000,17 @@ if response.status_code == 200:
|
|
|
3000
3000
|
|
|
3001
3001
|
return selected_input_columns + selected_generated_features
|
|
3002
3002
|
|
|
3003
|
-
def
|
|
3003
|
+
def _validate_empty_search_keys(self, df: pd.DataFrame, search_keys: dict[str, SearchKey], is_transform: bool = False):
|
|
3004
3004
|
if (search_keys is None or len(search_keys) == 0) and self.country_code is None:
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3005
|
+
self._add_current_date_as_key(df, search_keys, self.bundle, silent=is_transform)
|
|
3006
|
+
if is_transform:
|
|
3007
|
+
self.logger.debug("Transform started without search_keys")
|
|
3008
|
+
# return
|
|
3009
|
+
else:
|
|
3010
|
+
self.logger.warning("search_keys not provided")
|
|
3011
|
+
# raise ValidationError(self.bundle.get("empty_search_keys"))
|
|
3011
3012
|
|
|
3013
|
+
def __validate_search_keys(self, search_keys: dict[str, SearchKey], search_id: str | None = None):
|
|
3012
3014
|
key_types = search_keys.values()
|
|
3013
3015
|
|
|
3014
3016
|
# Multiple search keys allowed only for PHONE, IP, POSTAL_CODE, EMAIL, HEM
|
|
@@ -4801,6 +4803,8 @@ if response.status_code == 200:
|
|
|
4801
4803
|
|
|
4802
4804
|
self.logger.info(f"Prepared search keys: {valid_search_keys}")
|
|
4803
4805
|
|
|
4806
|
+
self._validate_empty_search_keys(valid_search_keys, is_transform=is_transform)
|
|
4807
|
+
|
|
4804
4808
|
return valid_search_keys
|
|
4805
4809
|
|
|
4806
4810
|
def __show_metrics(
|
|
@@ -4941,10 +4945,6 @@ if response.status_code == 200:
|
|
|
4941
4945
|
)
|
|
4942
4946
|
self.__log_warning(self.bundle.get("phone_detected_not_registered"))
|
|
4943
4947
|
|
|
4944
|
-
if (search_keys is None or len(search_keys) == 0) and self.country_code is None:
|
|
4945
|
-
self.logger.warning("search_keys not provided")
|
|
4946
|
-
raise ValidationError(self.bundle.get("empty_search_keys"))
|
|
4947
|
-
|
|
4948
4948
|
return search_keys
|
|
4949
4949
|
|
|
4950
4950
|
def _validate_binary_observations(self, y, task_type: ModelTaskType):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: upgini
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.146a1
|
|
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=
|
|
1
|
+
upgini/__about__.py,sha256=sKvJiwtG_K7p_zLr6JsuD4cXouzo0njg5S1FhZ85A4M,26
|
|
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=bkUpUC1sdhCQcLPysB7BC8WiFDPfjiJj1SztExpv0nA,33735
|
|
5
5
|
upgini/errors.py,sha256=2b_Wbo0OYhLUbrZqdLIx5jBnAsiD1Mcenh-VjR4HCTw,950
|
|
6
|
-
upgini/features_enricher.py,sha256=
|
|
6
|
+
upgini/features_enricher.py,sha256=ntrjtYSqXS_ufh0p2HrfaVPxANwcjUTsTwZ3E5aPk0E,235332
|
|
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
|
|
@@ -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.
|
|
78
|
-
upgini-1.2.
|
|
79
|
-
upgini-1.2.
|
|
80
|
-
upgini-1.2.
|
|
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,,
|
|
File without changes
|