upgini 1.2.54__py3-none-any.whl → 1.2.55a2__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 +19 -4
- {upgini-1.2.54.dist-info → upgini-1.2.55a2.dist-info}/METADATA +1 -1
- {upgini-1.2.54.dist-info → upgini-1.2.55a2.dist-info}/RECORD +6 -6
- {upgini-1.2.54.dist-info → upgini-1.2.55a2.dist-info}/WHEEL +0 -0
- {upgini-1.2.54.dist-info → upgini-1.2.55a2.dist-info}/licenses/LICENSE +0 -0
upgini/__about__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.2.
|
|
1
|
+
__version__ = "1.2.55a2"
|
upgini/features_enricher.py
CHANGED
|
@@ -2460,7 +2460,19 @@ if response.status_code == 200:
|
|
|
2460
2460
|
if add_fit_system_record_id:
|
|
2461
2461
|
selecting_columns.append(SORT_ID)
|
|
2462
2462
|
|
|
2463
|
-
|
|
2463
|
+
selecting_columns = list(set(selecting_columns))
|
|
2464
|
+
# sorting: first columns from X, then generated features, then enriched features
|
|
2465
|
+
sorted_selecting_columns = [c for c in validated_X.columns if c in selecting_columns]
|
|
2466
|
+
for c in generated_features:
|
|
2467
|
+
if c in selecting_columns and c not in sorted_selecting_columns:
|
|
2468
|
+
sorted_selecting_columns.append(c)
|
|
2469
|
+
for c in result.columns:
|
|
2470
|
+
if c in selecting_columns and c not in sorted_selecting_columns:
|
|
2471
|
+
sorted_selecting_columns.append(c)
|
|
2472
|
+
|
|
2473
|
+
self.logger.info(f"Transform sorted_selecting_columns: {sorted_selecting_columns}")
|
|
2474
|
+
|
|
2475
|
+
result = result[sorted_selecting_columns]
|
|
2464
2476
|
|
|
2465
2477
|
if self.country_added:
|
|
2466
2478
|
result = result.drop(columns=COUNTRY, errors="ignore")
|
|
@@ -3721,6 +3733,8 @@ if response.status_code == 200:
|
|
|
3721
3733
|
features_info_without_links = []
|
|
3722
3734
|
internal_features_info = []
|
|
3723
3735
|
|
|
3736
|
+
original_shaps = {fm.name: fm.shap_value for fm in features_meta}
|
|
3737
|
+
|
|
3724
3738
|
if updated_shaps is not None:
|
|
3725
3739
|
for fm in features_meta:
|
|
3726
3740
|
fm.shap_value = updated_shaps.get(fm.name, 0.0)
|
|
@@ -3732,15 +3746,16 @@ if response.status_code == 200:
|
|
|
3732
3746
|
|
|
3733
3747
|
is_client_feature = feature_meta.name in x_columns
|
|
3734
3748
|
|
|
3735
|
-
|
|
3749
|
+
# TODO make a decision about selected features based on special flag from mlb
|
|
3750
|
+
if original_shaps.get(feature_meta.name, 0.0) == 0.0:
|
|
3736
3751
|
if self.fit_select_features:
|
|
3737
3752
|
self.dropped_client_feature_names_.append(feature_meta.name)
|
|
3738
3753
|
continue
|
|
3739
3754
|
|
|
3740
3755
|
# Use only important features
|
|
3741
3756
|
if (
|
|
3742
|
-
feature_meta.name in self.fit_generated_features
|
|
3743
|
-
|
|
3757
|
+
# feature_meta.name in self.fit_generated_features or
|
|
3758
|
+
feature_meta.name == COUNTRY
|
|
3744
3759
|
# In select_features mode we select also from etalon features and need to show them
|
|
3745
3760
|
or (not self.fit_select_features and is_client_feature)
|
|
3746
3761
|
):
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
upgini/__about__.py,sha256=
|
|
1
|
+
upgini/__about__.py,sha256=AoPRhBb-_Kg5q3atFlIhgGYnF89Sf3FiehaPlpQQx5M,25
|
|
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=vT4JyHmafLNbj54SySXr93f5hNS6-t94aFslbBy-7No,33535
|
|
5
5
|
upgini/errors.py,sha256=2b_Wbo0OYhLUbrZqdLIx5jBnAsiD1Mcenh-VjR4HCTw,950
|
|
6
|
-
upgini/features_enricher.py,sha256=
|
|
6
|
+
upgini/features_enricher.py,sha256=Te4ZbFZ2RCEi9NHo1ddWaxfkTep_3O6Okct3U_DWeD0,201520
|
|
7
7
|
upgini/http.py,sha256=ud0Cp7h0jNeHuuZGpU_1dAAEiabGoJjGxc1X5oeBQr4,43496
|
|
8
8
|
upgini/lazy_import.py,sha256=74gQ8JuA48BGRLxAo7lNHNKY2D2emMxrUxKGdxVGhuY,1012
|
|
9
9
|
upgini/metadata.py,sha256=Jh6YTaS00m_nbaOY_owvlSyn9zgkErkqu8iTr9ZjKI8,12279
|
|
@@ -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.
|
|
63
|
-
upgini-1.2.
|
|
64
|
-
upgini-1.2.
|
|
65
|
-
upgini-1.2.
|
|
62
|
+
upgini-1.2.55a2.dist-info/METADATA,sha256=j01z5ab2V_U_jFU4mNVMFcSmWqsb9ePRLJsgK6BunU0,49057
|
|
63
|
+
upgini-1.2.55a2.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
64
|
+
upgini-1.2.55a2.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
|
|
65
|
+
upgini-1.2.55a2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|