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 +1 -1
- upgini/metrics.py +12 -0
- {upgini-1.2.18.dist-info → upgini-1.2.19a1.dist-info}/METADATA +1 -1
- {upgini-1.2.18.dist-info → upgini-1.2.19a1.dist-info}/RECORD +6 -6
- {upgini-1.2.18.dist-info → upgini-1.2.19a1.dist-info}/WHEEL +0 -0
- {upgini-1.2.18.dist-info → upgini-1.2.19a1.dist-info}/licenses/LICENSE +0 -0
upgini/__about__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.2.
|
|
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,4 +1,4 @@
|
|
|
1
|
-
upgini/__about__.py,sha256=
|
|
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=
|
|
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.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,,
|
|
File without changes
|
|
File without changes
|