upgini 1.2.14a3616.dev1__py3-none-any.whl → 1.2.14a3616.dev3__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 -8
- {upgini-1.2.14a3616.dev1.dist-info → upgini-1.2.14a3616.dev3.dist-info}/METADATA +1 -1
- {upgini-1.2.14a3616.dev1.dist-info → upgini-1.2.14a3616.dev3.dist-info}/RECORD +6 -6
- {upgini-1.2.14a3616.dev1.dist-info → upgini-1.2.14a3616.dev3.dist-info}/WHEEL +0 -0
- {upgini-1.2.14a3616.dev1.dist-info → upgini-1.2.14a3616.dev3.dist-info}/licenses/LICENSE +0 -0
upgini/__about__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.2.14a3616.
|
|
1
|
+
__version__ = "1.2.14a3616.dev3"
|
upgini/features_enricher.py
CHANGED
|
@@ -2449,8 +2449,6 @@ class FeaturesEnricher(TransformerMixin):
|
|
|
2449
2449
|
if is_numeric_dtype(df[self.TARGET_NAME]) and has_date:
|
|
2450
2450
|
self._validate_PSI(df.sort_values(by=maybe_date_column))
|
|
2451
2451
|
|
|
2452
|
-
self.__adjust_cv(df, maybe_date_column, self.model_task_type)
|
|
2453
|
-
|
|
2454
2452
|
normalizer = Normalizer(
|
|
2455
2453
|
self.fit_search_keys, self.fit_generated_features, self.bundle, self.logger, self.warning_counter
|
|
2456
2454
|
)
|
|
@@ -2458,6 +2456,10 @@ class FeaturesEnricher(TransformerMixin):
|
|
|
2458
2456
|
columns_renaming = normalizer.columns_renaming
|
|
2459
2457
|
self.fit_columns_renaming = columns_renaming
|
|
2460
2458
|
|
|
2459
|
+
self.__adjust_cv(
|
|
2460
|
+
df, normalizer.search_keys, self.model_task_type
|
|
2461
|
+
)
|
|
2462
|
+
|
|
2461
2463
|
df = remove_fintech_duplicates(
|
|
2462
2464
|
df, self.fit_search_keys, date_format=self.date_format, logger=self.logger, bundle=self.bundle
|
|
2463
2465
|
)
|
|
@@ -2710,23 +2712,24 @@ class FeaturesEnricher(TransformerMixin):
|
|
|
2710
2712
|
if not self.warning_counter.has_warnings():
|
|
2711
2713
|
self.__display_support_link(self.bundle.get("all_ok_community_invite"))
|
|
2712
2714
|
|
|
2713
|
-
def __adjust_cv(self, df: pd.DataFrame,
|
|
2715
|
+
def __adjust_cv(self, df: pd.DataFrame, search_keys: Dict[str, SearchKey], model_task_type: ModelTaskType):
|
|
2716
|
+
date_column = SearchKey.find_key(search_keys, [SearchKey.DATE, SearchKey.DATETIME])
|
|
2714
2717
|
# Check Multivariate time series
|
|
2715
2718
|
if (
|
|
2716
2719
|
self.cv is None
|
|
2717
2720
|
and date_column
|
|
2718
2721
|
and model_task_type == ModelTaskType.REGRESSION
|
|
2719
|
-
and len({SearchKey.PHONE, SearchKey.EMAIL, SearchKey.HEM}.intersection(
|
|
2720
|
-
and is_blocked_time_series(df, date_column, list(
|
|
2722
|
+
and len({SearchKey.PHONE, SearchKey.EMAIL, SearchKey.HEM}.intersection(search_keys.keys())) == 0
|
|
2723
|
+
and is_blocked_time_series(df, date_column, list(search_keys.keys()) + [TARGET])
|
|
2721
2724
|
):
|
|
2722
2725
|
msg = self.bundle.get("multivariate_timeseries_detected")
|
|
2723
2726
|
self.__override_cv(CVType.blocked_time_series, msg, print_warning=False)
|
|
2724
2727
|
elif self.cv is None and model_task_type != ModelTaskType.REGRESSION:
|
|
2725
2728
|
msg = self.bundle.get("group_k_fold_in_classification")
|
|
2726
2729
|
self.__override_cv(CVType.group_k_fold, msg, print_warning=self.cv is not None)
|
|
2727
|
-
group_columns = self._get_group_columns(df,
|
|
2728
|
-
self.runtime_parameters["cv_params.group_columns"] = ",".join(group_columns)
|
|
2729
|
-
self.runtime_parameters["cv_params.shuffle_kfold"] = "True"
|
|
2730
|
+
group_columns = self._get_group_columns(df, search_keys)
|
|
2731
|
+
self.runtime_parameters.properties["cv_params.group_columns"] = ",".join(group_columns)
|
|
2732
|
+
self.runtime_parameters.properties["cv_params.shuffle_kfold"] = "True"
|
|
2730
2733
|
|
|
2731
2734
|
def __override_cv(self, cv: CVType, msg: str, print_warning: bool = True):
|
|
2732
2735
|
if print_warning:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: upgini
|
|
3
|
-
Version: 1.2.14a3616.
|
|
3
|
+
Version: 1.2.14a3616.dev3
|
|
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=r3lE_a_du_MY_PJ07BeAX4zN5ZZJoiV-YXe1uJzNwTo,33
|
|
2
2
|
upgini/__init__.py,sha256=M64LwQTBa-5Jz24Zm2h8rWwlKQQ1J8nP7gGgIciS0WU,589
|
|
3
3
|
upgini/ads.py,sha256=nvuRxRx5MHDMgPr9SiU-fsqRdFaBv8p4_v1oqiysKpc,2714
|
|
4
4
|
upgini/dataset.py,sha256=olZ-OHSfBNoBSCo7R5t7uCLukI2nO7afpx_A-HCiJLk,31067
|
|
5
5
|
upgini/errors.py,sha256=2b_Wbo0OYhLUbrZqdLIx5jBnAsiD1Mcenh-VjR4HCTw,950
|
|
6
|
-
upgini/features_enricher.py,sha256=
|
|
6
|
+
upgini/features_enricher.py,sha256=tGdWQdCgilWlG-sDebIBxQ_OMpnOqg8mTzxCj7Xp-yo,188320
|
|
7
7
|
upgini/http.py,sha256=21asexflvavydzCOONJDGQBtQanCElrbnqLXakJ9Cu8,42880
|
|
8
8
|
upgini/lazy_import.py,sha256=74gQ8JuA48BGRLxAo7lNHNKY2D2emMxrUxKGdxVGhuY,1012
|
|
9
9
|
upgini/metadata.py,sha256=osmzdNESeh7yP3BZday6N9Q3eaIHfzhhRM1d6NSgcf0,11223
|
|
@@ -57,7 +57,7 @@ upgini/utils/sklearn_ext.py,sha256=13jQS_k7v0aUtudXV6nGUEWjttPQzAW9AFYL5wgEz9k,4
|
|
|
57
57
|
upgini/utils/target_utils.py,sha256=BVtDmrmFMKerSUWaNOIEdzsYHIFiODdpnWbE50QDPDc,7864
|
|
58
58
|
upgini/utils/track_info.py,sha256=G5Lu1xxakg2_TQjKZk4b5SvrHsATTXNVV3NbvWtT8k8,5663
|
|
59
59
|
upgini/utils/warning_counter.py,sha256=dIWBB4dI5XRRJZudvIlqlIYKEiwLLPcXarsZuYRt338,227
|
|
60
|
-
upgini-1.2.14a3616.
|
|
61
|
-
upgini-1.2.14a3616.
|
|
62
|
-
upgini-1.2.14a3616.
|
|
63
|
-
upgini-1.2.14a3616.
|
|
60
|
+
upgini-1.2.14a3616.dev3.dist-info/METADATA,sha256=t3fSIzaoSthUHfOhJmHqz45r_3UpZhF2ur9cFekdcA8,48587
|
|
61
|
+
upgini-1.2.14a3616.dev3.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
|
|
62
|
+
upgini-1.2.14a3616.dev3.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
|
|
63
|
+
upgini-1.2.14a3616.dev3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|