upgini 1.1.253a3__py3-none-any.whl → 1.1.253a5__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/features_enricher.py +4 -1
- upgini/utils/target_utils.py +1 -1
- {upgini-1.1.253a3.dist-info → upgini-1.1.253a5.dist-info}/METADATA +1 -1
- {upgini-1.1.253a3.dist-info → upgini-1.1.253a5.dist-info}/RECORD +7 -7
- {upgini-1.1.253a3.dist-info → upgini-1.1.253a5.dist-info}/LICENSE +0 -0
- {upgini-1.1.253a3.dist-info → upgini-1.1.253a5.dist-info}/WHEEL +0 -0
- {upgini-1.1.253a3.dist-info → upgini-1.1.253a5.dist-info}/top_level.txt +0 -0
upgini/features_enricher.py
CHANGED
|
@@ -3022,6 +3022,7 @@ class FeaturesEnricher(TransformerMixin):
|
|
|
3022
3022
|
return result_train, result_eval_sets
|
|
3023
3023
|
|
|
3024
3024
|
def __prepare_feature_importances(self, trace_id: str, x_columns: List[str], silent=False):
|
|
3025
|
+
llm_source = "LLM with external data augmentation"
|
|
3025
3026
|
if self._search_task is None:
|
|
3026
3027
|
raise NotFittedError(self.bundle.get("transform_unfitted_enricher"))
|
|
3027
3028
|
features_meta = self._search_task.get_all_features_metadata_v2()
|
|
@@ -3076,6 +3077,8 @@ class FeaturesEnricher(TransformerMixin):
|
|
|
3076
3077
|
return ""
|
|
3077
3078
|
elif not link:
|
|
3078
3079
|
return value
|
|
3080
|
+
elif value == llm_source:
|
|
3081
|
+
return value
|
|
3079
3082
|
else:
|
|
3080
3083
|
return f"<a href='{link}' target='_blank' rel='noopener noreferrer'>{value}</a>"
|
|
3081
3084
|
|
|
@@ -3092,7 +3095,7 @@ class FeaturesEnricher(TransformerMixin):
|
|
|
3092
3095
|
provider = to_anchor("https://upgini.com", "Upgini")
|
|
3093
3096
|
|
|
3094
3097
|
internal_source = feature_meta.data_source or (
|
|
3095
|
-
|
|
3098
|
+
llm_source
|
|
3096
3099
|
if not feature_meta.name.endswith("_country") and not feature_meta.name.endswith("_postal_code")
|
|
3097
3100
|
else ""
|
|
3098
3101
|
)
|
upgini/utils/target_utils.py
CHANGED
|
@@ -152,7 +152,7 @@ def balance_undersample(
|
|
|
152
152
|
# fill up to min_sample_threshold by majority class
|
|
153
153
|
minority_class = df[df[target_column] == min_class_value]
|
|
154
154
|
majority_class = df[df[target_column] != min_class_value]
|
|
155
|
-
sample_size = min(len(majority_class, min_sample_threshold - min_class_count)
|
|
155
|
+
sample_size = min(len(majority_class), min_sample_threshold - min_class_count)
|
|
156
156
|
sampled_majority_class = majority_class.sample(
|
|
157
157
|
n=sample_size, random_state=random_state
|
|
158
158
|
)
|
|
@@ -2,7 +2,7 @@ upgini/__init__.py,sha256=asENHgEVHQBIkV-e_0IhE_ZWqkCG6398U3ZLrNzAH6k,407
|
|
|
2
2
|
upgini/ads.py,sha256=mre6xn44wcC_fg63iLT_kTh4mViZqR9AKRJZAtpQz8Y,2592
|
|
3
3
|
upgini/dataset.py,sha256=sL1w8dVmXkuV5PWaBTUpz8X8joW6mIOLyPbSAlSbpR0,45576
|
|
4
4
|
upgini/errors.py,sha256=pdzQl3MKuK52yvncxMWMRWeSIOGhUFzpQoszoRFBOk0,958
|
|
5
|
-
upgini/features_enricher.py,sha256=
|
|
5
|
+
upgini/features_enricher.py,sha256=1f92VFY3ZyVGdTTY81BPQs6OjrSAQJc0U41C6QsWLQ0,171822
|
|
6
6
|
upgini/fingerprint.js,sha256=VygVIQlN1v4NGZfjHqtRogOw8zjTnnMNJg_f7M5iGQU,33442
|
|
7
7
|
upgini/http.py,sha256=eSG4gOpmCGlXmB6KIPNzAG8tRZNUjyYpMeUeHw_2li4,42264
|
|
8
8
|
upgini/metadata.py,sha256=fwVxtkR6Mn4iRoOqV6BfMJvJrx65I3YwZUMbZjhPyOI,9673
|
|
@@ -52,11 +52,11 @@ upgini/utils/phone_utils.py,sha256=JNSkF8G6mgsN8Czy11pamaJdsY6rBINEMpi7jbVt_RA,4
|
|
|
52
52
|
upgini/utils/postal_code_utils.py,sha256=_8CR9tBqsPptQsmMUvnrCAmBaMIQSWH3JfJ4ly3x_zs,409
|
|
53
53
|
upgini/utils/progress_bar.py,sha256=iNXyqT3vKCeHpfiG5HHwr7Lk2cTtKViM93Fl8iZnjGc,1564
|
|
54
54
|
upgini/utils/sklearn_ext.py,sha256=fvuTWJ5AnT3ED9KSaQu_yIgW2JR19hFlaGDoVP3k60g,44027
|
|
55
|
-
upgini/utils/target_utils.py,sha256=
|
|
55
|
+
upgini/utils/target_utils.py,sha256=WVhhxpQVvnhsDV7ctlds51VFg7hz59S_MFUSoRZFszw,7204
|
|
56
56
|
upgini/utils/track_info.py,sha256=EPcJ13Jqa17_T0JjM37Ac9kWDz5Zk0GVsIZKutOb8aU,5207
|
|
57
57
|
upgini/utils/warning_counter.py,sha256=dIWBB4dI5XRRJZudvIlqlIYKEiwLLPcXarsZuYRt338,227
|
|
58
|
-
upgini-1.1.
|
|
59
|
-
upgini-1.1.
|
|
60
|
-
upgini-1.1.
|
|
61
|
-
upgini-1.1.
|
|
62
|
-
upgini-1.1.
|
|
58
|
+
upgini-1.1.253a5.dist-info/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
|
|
59
|
+
upgini-1.1.253a5.dist-info/METADATA,sha256=sYd-VQbiUxqSOb9cgjavIjagvPxM1uyO7fgAT97UZg8,48158
|
|
60
|
+
upgini-1.1.253a5.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
61
|
+
upgini-1.1.253a5.dist-info/top_level.txt,sha256=OFhTGiDIWKl5gFI49qvWq1R9IKflPaE2PekcbDXDtx4,7
|
|
62
|
+
upgini-1.1.253a5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|