upgini 1.2.38a3769.dev10__py3-none-any.whl → 1.2.38a3769.dev12__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.38a3769.dev10"
1
+ __version__ = "1.2.38a3769.dev12"
@@ -932,11 +932,9 @@ class FeaturesEnricher(TransformerMixin):
932
932
  cat_features, search_keys_for_metrics = self._get_client_cat_features(
933
933
  estimator, validated_X, self.search_keys
934
934
  )
935
- search_keys_for_metrics.extend(
936
- [c for c in self.id_columns or [] if c not in search_keys_for_metrics]
937
- )
935
+ search_keys_for_metrics.extend([c for c in self.id_columns or [] if c not in search_keys_for_metrics])
938
936
  self.logger.info(f"Search keys for metrics: {search_keys_for_metrics}")
939
-
937
+
940
938
  prepared_data = self._prepare_data_for_metrics(
941
939
  trace_id=trace_id,
942
940
  X=X,
@@ -2150,6 +2148,9 @@ class FeaturesEnricher(TransformerMixin):
2150
2148
  validated_X = validated_X.drop(columns=columns_to_drop)
2151
2149
 
2152
2150
  search_keys = self.search_keys.copy()
2151
+ if self.id_columns is not None and self.cv is not None and self.cv.is_time_series():
2152
+ self.search_keys.update({col: SearchKey.CUSTOM_KEY for col in self.id_columns})
2153
+
2153
2154
  search_keys = self.__prepare_search_keys(
2154
2155
  validated_X, search_keys, is_demo_dataset, is_transform=True, silent_mode=silent_mode
2155
2156
  )
@@ -2307,7 +2308,7 @@ class FeaturesEnricher(TransformerMixin):
2307
2308
  meaning_types=meaning_types,
2308
2309
  search_keys=combined_search_keys,
2309
2310
  unnest_search_keys=unnest_search_keys,
2310
- id_columns=self.__get_renamed_id_columns(),
2311
+ id_columns=self.__get_renamed_id_columns(columns_renaming),
2311
2312
  date_format=self.date_format,
2312
2313
  rest_client=self.rest_client,
2313
2314
  logger=self.logger,
@@ -2668,6 +2669,7 @@ class FeaturesEnricher(TransformerMixin):
2668
2669
  id_columns = self.__get_renamed_id_columns()
2669
2670
  if id_columns:
2670
2671
  self.fit_search_keys.update({col: SearchKey.CUSTOM_KEY for col in id_columns})
2672
+ self.search_keys.update({col: SearchKey.CUSTOM_KEY for col in self.id_columns})
2671
2673
  self.runtime_parameters.properties["id_columns"] = ",".join(id_columns)
2672
2674
 
2673
2675
  df, fintech_warnings = remove_fintech_duplicates(
@@ -2952,8 +2954,9 @@ class FeaturesEnricher(TransformerMixin):
2952
2954
  def __should_add_date_column(self):
2953
2955
  return self.add_date_if_missing or (self.cv is not None and self.cv.is_time_series())
2954
2956
 
2955
- def __get_renamed_id_columns(self):
2956
- reverse_renaming = {v: k for k, v in self.fit_columns_renaming.items()}
2957
+ def __get_renamed_id_columns(self, renaming: Optional[Dict[str, str]] = None):
2958
+ renaming = renaming or self.fit_columns_renaming
2959
+ reverse_renaming = {v: k for k, v in renaming.items()}
2957
2960
  return None if self.id_columns is None else [reverse_renaming.get(c) or c for c in self.id_columns]
2958
2961
 
2959
2962
  def __adjust_cv(self, df: pd.DataFrame):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: upgini
3
- Version: 1.2.38a3769.dev10
3
+ Version: 1.2.38a3769.dev12
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=UAQVa4N_ObO2ZeMnu4i9bV5JnfLR6zsQUjKWSOY32Jw,34
1
+ upgini/__about__.py,sha256=jo5NfJVXp8J2Wr6oGipwq5RbqfXjIrHGj_yduN2ptEE,34
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=-3FeDMADnHxGb70rKFY_U96NCQO-TEUAXFicFl25CtY,33222
5
5
  upgini/errors.py,sha256=2b_Wbo0OYhLUbrZqdLIx5jBnAsiD1Mcenh-VjR4HCTw,950
6
- upgini/features_enricher.py,sha256=vqvkIR571m3ViYDpRZYpcXdCGTg0efh3euiS__h7qMI,196507
6
+ upgini/features_enricher.py,sha256=Qea20gXU1QcTTZeQtPoz654qld5-2jTWFoCjsOJuUp4,196858
7
7
  upgini/http.py,sha256=plZGTGoi1h2edd8Cnjt4eYB8t4NbBGnZz7DtPTByiNc,42885
8
8
  upgini/lazy_import.py,sha256=74gQ8JuA48BGRLxAo7lNHNKY2D2emMxrUxKGdxVGhuY,1012
9
9
  upgini/metadata.py,sha256=-ibqiNjD7dTagqg53FoEJNEqvAYbwgfyn9PGTRQ_YKU,12054
@@ -59,7 +59,7 @@ upgini/utils/sklearn_ext.py,sha256=13jQS_k7v0aUtudXV6nGUEWjttPQzAW9AFYL5wgEz9k,4
59
59
  upgini/utils/target_utils.py,sha256=RlpKGss9kMibVSlA8iZuO_qxmyeplqzn7X8g6hiGGGs,14341
60
60
  upgini/utils/track_info.py,sha256=G5Lu1xxakg2_TQjKZk4b5SvrHsATTXNVV3NbvWtT8k8,5663
61
61
  upgini/utils/warning_counter.py,sha256=-GRY8EUggEBKODPSuXAkHn9KnEQwAORC0mmz_tim-PM,254
62
- upgini-1.2.38a3769.dev10.dist-info/METADATA,sha256=hA_Y0a_MbicdV8T2WbGDylIdUT7rZI6zGlxaDwGuJsg,48605
63
- upgini-1.2.38a3769.dev10.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
64
- upgini-1.2.38a3769.dev10.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
65
- upgini-1.2.38a3769.dev10.dist-info/RECORD,,
62
+ upgini-1.2.38a3769.dev12.dist-info/METADATA,sha256=VzXuazbpOAw0aPua21kFxOaF_BKeeKKVs9PJVbOq734,48605
63
+ upgini-1.2.38a3769.dev12.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
64
+ upgini-1.2.38a3769.dev12.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
65
+ upgini-1.2.38a3769.dev12.dist-info/RECORD,,