upgini 1.2.54__tar.gz → 1.2.55__tar.gz

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.

Files changed (67) hide show
  1. {upgini-1.2.54 → upgini-1.2.55}/PKG-INFO +1 -1
  2. upgini-1.2.55/src/upgini/__about__.py +1 -0
  3. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/features_enricher.py +19 -4
  4. upgini-1.2.54/src/upgini/__about__.py +0 -1
  5. {upgini-1.2.54 → upgini-1.2.55}/.gitignore +0 -0
  6. {upgini-1.2.54 → upgini-1.2.55}/LICENSE +0 -0
  7. {upgini-1.2.54 → upgini-1.2.55}/README.md +0 -0
  8. {upgini-1.2.54 → upgini-1.2.55}/pyproject.toml +0 -0
  9. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/__init__.py +0 -0
  10. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/ads.py +0 -0
  11. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/ads_management/__init__.py +0 -0
  12. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/ads_management/ads_manager.py +0 -0
  13. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/autofe/__init__.py +0 -0
  14. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/autofe/all_operands.py +0 -0
  15. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/autofe/binary.py +0 -0
  16. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/autofe/date.py +0 -0
  17. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/autofe/feature.py +0 -0
  18. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/autofe/groupby.py +0 -0
  19. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/autofe/operand.py +0 -0
  20. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/autofe/unary.py +0 -0
  21. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/autofe/vector.py +0 -0
  22. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/data_source/__init__.py +0 -0
  23. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/data_source/data_source_publisher.py +0 -0
  24. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/dataset.py +0 -0
  25. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/errors.py +0 -0
  26. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/http.py +0 -0
  27. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/lazy_import.py +0 -0
  28. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/mdc/__init__.py +0 -0
  29. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/mdc/context.py +0 -0
  30. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/metadata.py +0 -0
  31. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/metrics.py +0 -0
  32. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/normalizer/__init__.py +0 -0
  33. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/normalizer/normalize_utils.py +0 -0
  34. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/resource_bundle/__init__.py +0 -0
  35. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/resource_bundle/exceptions.py +0 -0
  36. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/resource_bundle/strings.properties +0 -0
  37. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/resource_bundle/strings_widget.properties +0 -0
  38. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/sampler/__init__.py +0 -0
  39. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/sampler/base.py +0 -0
  40. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/sampler/random_under_sampler.py +0 -0
  41. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/sampler/utils.py +0 -0
  42. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/search_task.py +0 -0
  43. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/spinner.py +0 -0
  44. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/utils/Roboto-Regular.ttf +0 -0
  45. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/utils/__init__.py +0 -0
  46. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/utils/base_search_key_detector.py +0 -0
  47. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/utils/blocked_time_series.py +0 -0
  48. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/utils/country_utils.py +0 -0
  49. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/utils/custom_loss_utils.py +0 -0
  50. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/utils/cv_utils.py +0 -0
  51. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/utils/datetime_utils.py +0 -0
  52. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/utils/deduplicate_utils.py +0 -0
  53. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/utils/display_utils.py +0 -0
  54. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/utils/email_utils.py +0 -0
  55. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/utils/fallback_progress_bar.py +0 -0
  56. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/utils/feature_info.py +0 -0
  57. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/utils/features_validator.py +0 -0
  58. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/utils/format.py +0 -0
  59. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/utils/ip_utils.py +0 -0
  60. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/utils/phone_utils.py +0 -0
  61. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/utils/postal_code_utils.py +0 -0
  62. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/utils/progress_bar.py +0 -0
  63. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/utils/sklearn_ext.py +0 -0
  64. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/utils/target_utils.py +0 -0
  65. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/utils/track_info.py +0 -0
  66. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/utils/warning_counter.py +0 -0
  67. {upgini-1.2.54 → upgini-1.2.55}/src/upgini/version_validator.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: upgini
3
- Version: 1.2.54
3
+ Version: 1.2.55
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/
@@ -0,0 +1 @@
1
+ __version__ = "1.2.55"
@@ -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
- result = result[selecting_columns]
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
- if feature_meta.shap_value == 0.0:
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
- or feature_meta.name == COUNTRY
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 +0,0 @@
1
- __version__ = "1.2.54"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes