upgini 1.2.18__py3-none-any.whl → 1.2.19a1__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.18"
1
+ __version__ = "1.2.19a1"
upgini/metrics.py CHANGED
@@ -343,11 +343,16 @@ class EstimatorWrapper:
343
343
  }
344
344
  if len(average_shap_values) == 0:
345
345
  average_shap_values = None
346
+ else:
347
+ average_shap_values = self.process_shap_values(average_shap_values)
346
348
  else:
347
349
  average_shap_values = None
348
350
 
349
351
  return self.post_process_metric(metric), average_shap_values
350
352
 
353
+ def process_shap_values(self, shap_values: Dict[str, float]) -> Dict[str, float]:
354
+ return shap_values
355
+
351
356
  def check_fold_metrics(self, metrics_by_fold: List[float]):
352
357
  first_metric_sign = 1 if metrics_by_fold[0] >= 0 else -1
353
358
  for metric in metrics_by_fold[1:]:
@@ -558,6 +563,13 @@ class CatBoostWrapper(EstimatorWrapper):
558
563
 
559
564
  return df, [emb_name]
560
565
 
566
+ def process_shap_values(self, shap_values: Dict[str, float]) -> Dict[str, float]:
567
+ if "__grouped_embeddings" in shap_values:
568
+ for emb_feature in self.emb_features:
569
+ shap_values[emb_feature] = shap_values["__grouped_embeddings"]
570
+ del shap_values["__grouped_embeddings"]
571
+ return shap_values
572
+
561
573
  def _prepare_to_calculate(self, x: pd.DataFrame, y: pd.Series) -> Tuple[pd.DataFrame, np.ndarray, dict]:
562
574
  if self.exclude_features:
563
575
  x = x.drop(columns=self.exclude_features)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: upgini
3
- Version: 1.2.18
3
+ Version: 1.2.19a1
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,4 +1,4 @@
1
- upgini/__about__.py,sha256=XcELISZQTMy84hZtR4cdOkuOGviIP82q_-L9IH-Qu7A,23
1
+ upgini/__about__.py,sha256=d339vH_URVWa-g9u0TOnlsaQJuX765uKQN8lSe4hfpM,25
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=iPFiMJtk4HF1ytw9wCQr8H9RfoOKj_TIo8XYZKWgcMc,31331
@@ -7,7 +7,7 @@ upgini/features_enricher.py,sha256=3Jx6eoGULag64lN8pnwloI-RKwyLlVONrCADxpehwNo,1
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
10
- upgini/metrics.py,sha256=0Fy_C2UAedOxyfkSe9DmZsTcsOEzSnes7QChYHZ6Euw,33913
10
+ upgini/metrics.py,sha256=M508zOvqg0uc2sSgS8fpU7uNjGv1JA6iW_gDDOq-6PI,34474
11
11
  upgini/search_task.py,sha256=qxUxAD-bed-FpZYmTB_4orW7YJsW_O6a1TcgnZIRFr4,17307
12
12
  upgini/spinner.py,sha256=4iMd-eIe_BnkqFEMIliULTbj6rNI2HkN_VJ4qYe0cUc,1118
13
13
  upgini/version_validator.py,sha256=ddSKUK_-eGJB3NgrqOMoWJU-OxQ253WsNLp8aqJkaIM,1389
@@ -57,7 +57,7 @@ upgini/utils/sklearn_ext.py,sha256=13jQS_k7v0aUtudXV6nGUEWjttPQzAW9AFYL5wgEz9k,4
57
57
  upgini/utils/target_utils.py,sha256=qHzZRmICFbLNCrmVqGkaBcjm91L2ERRZMppci36acV4,10085
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.18.dist-info/METADATA,sha256=dOuLBBNHAw4jZof-az8hEPMCT1gwPjpf_SY-rwq6_FU,48578
61
- upgini-1.2.18.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
62
- upgini-1.2.18.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
63
- upgini-1.2.18.dist-info/RECORD,,
60
+ upgini-1.2.19a1.dist-info/METADATA,sha256=saak1tLriv8l02IV7TdY4pntedUc9Sd8qNjatTo8DNE,48580
61
+ upgini-1.2.19a1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
62
+ upgini-1.2.19a1.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
63
+ upgini-1.2.19a1.dist-info/RECORD,,