upgini 1.2.17a1__py3-none-any.whl → 1.2.19__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 +2 -2
- upgini/metrics.py +13 -1
- {upgini-1.2.17a1.dist-info → upgini-1.2.19.dist-info}/METADATA +1 -1
- {upgini-1.2.17a1.dist-info → upgini-1.2.19.dist-info}/RECORD +7 -7
- {upgini-1.2.17a1.dist-info → upgini-1.2.19.dist-info}/WHEEL +0 -0
- {upgini-1.2.17a1.dist-info → upgini-1.2.19.dist-info}/licenses/LICENSE +0 -0
upgini/__about__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.2.
|
|
1
|
+
__version__ = "1.2.19"
|
upgini/features_enricher.py
CHANGED
|
@@ -3894,10 +3894,10 @@ class FeaturesEnricher(TransformerMixin):
|
|
|
3894
3894
|
search_id=self._search_task.search_task_id,
|
|
3895
3895
|
email=self.rest_client.get_current_email(),
|
|
3896
3896
|
search_keys=[str(sk) for sk in self.search_keys.values()],
|
|
3897
|
-
|
|
3897
|
+
display_id=display_id,
|
|
3898
3898
|
display_handle=display_handle,
|
|
3899
3899
|
)
|
|
3900
|
-
except Exception
|
|
3900
|
+
except Exception:
|
|
3901
3901
|
pass
|
|
3902
3902
|
|
|
3903
3903
|
def __validate_importance_threshold(self, importance_threshold: Optional[float]) -> float:
|
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,13 +563,20 @@ 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)
|
|
564
576
|
x, y, params = super()._prepare_to_calculate(x, y)
|
|
565
577
|
if self.text_features:
|
|
566
578
|
params["text_features"] = self.text_features
|
|
567
|
-
if self.
|
|
579
|
+
if self.grouped_embedding_features:
|
|
568
580
|
x, emb_columns = self.group_embeddings(x)
|
|
569
581
|
params["embedding_features"] = emb_columns
|
|
570
582
|
if self.cat_features:
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
upgini/__about__.py,sha256=
|
|
1
|
+
upgini/__about__.py,sha256=vBqPpUxy9sFZkDmAAvQCrIqAA_ye7foz7jV5SkuJi0I,23
|
|
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
|
|
5
5
|
upgini/errors.py,sha256=2b_Wbo0OYhLUbrZqdLIx5jBnAsiD1Mcenh-VjR4HCTw,950
|
|
6
|
-
upgini/features_enricher.py,sha256=
|
|
6
|
+
upgini/features_enricher.py,sha256=3Jx6eoGULag64lN8pnwloI-RKwyLlVONrCADxpehwNo,192789
|
|
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=
|
|
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.
|
|
61
|
-
upgini-1.2.
|
|
62
|
-
upgini-1.2.
|
|
63
|
-
upgini-1.2.
|
|
60
|
+
upgini-1.2.19.dist-info/METADATA,sha256=vLa9ATKnLlSfkn1j2qxNf_V9VwqNjTziziCzDToj1C8,48578
|
|
61
|
+
upgini-1.2.19.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
62
|
+
upgini-1.2.19.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
|
|
63
|
+
upgini-1.2.19.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|