upgini 1.2.95__py3-none-any.whl → 1.2.96a2__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.
- upgini/__about__.py +1 -1
- upgini/features_enricher.py +12 -2
- upgini/resource_bundle/strings.properties +2 -2
- {upgini-1.2.95.dist-info → upgini-1.2.96a2.dist-info}/METADATA +1 -1
- {upgini-1.2.95.dist-info → upgini-1.2.96a2.dist-info}/RECORD +7 -7
- {upgini-1.2.95.dist-info → upgini-1.2.96a2.dist-info}/WHEEL +0 -0
- {upgini-1.2.95.dist-info → upgini-1.2.96a2.dist-info}/licenses/LICENSE +0 -0
upgini/__about__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "1.2.
|
1
|
+
__version__ = "1.2.96a2"
|
upgini/features_enricher.py
CHANGED
@@ -1122,6 +1122,7 @@ class FeaturesEnricher(TransformerMixin):
|
|
1122
1122
|
# and calculate final metric (and uplift)
|
1123
1123
|
enriched_metric = None
|
1124
1124
|
uplift = None
|
1125
|
+
uplift_perc = None
|
1125
1126
|
enriched_estimator = None
|
1126
1127
|
if set(fitting_X.columns) != set(fitting_enriched_X.columns):
|
1127
1128
|
self.logger.info(
|
@@ -1153,6 +1154,7 @@ class FeaturesEnricher(TransformerMixin):
|
|
1153
1154
|
self.logger.info(f"Enriched {metric} on train combined features: {enriched_metric}")
|
1154
1155
|
if baseline_metric is not None and enriched_metric is not None:
|
1155
1156
|
uplift = (enriched_cv_result.metric - baseline_cv_result.metric) * multiplier
|
1157
|
+
uplift_perc = uplift / abs(baseline_cv_result.metric) * 100
|
1156
1158
|
|
1157
1159
|
train_metrics = {
|
1158
1160
|
self.bundle.get("quality_metrics_segment_header"): self.bundle.get(
|
@@ -1179,7 +1181,10 @@ class FeaturesEnricher(TransformerMixin):
|
|
1179
1181
|
enriched_metric
|
1180
1182
|
)
|
1181
1183
|
if uplift is not None:
|
1182
|
-
train_metrics[self.bundle.get("quality_metrics_uplift_header")] = uplift
|
1184
|
+
train_metrics[self.bundle.get("quality_metrics_uplift_header")] = round(uplift, 3)
|
1185
|
+
train_metrics[self.bundle.get("quality_metrics_uplift_perc_header")] = (
|
1186
|
+
f"{round(uplift_perc, 1)}%"
|
1187
|
+
)
|
1183
1188
|
metrics = [train_metrics]
|
1184
1189
|
|
1185
1190
|
# 3 If eval_set is presented - fit final model on train enriched data and score each
|
@@ -1228,8 +1233,10 @@ class FeaturesEnricher(TransformerMixin):
|
|
1228
1233
|
|
1229
1234
|
if etalon_eval_metric is not None and enriched_eval_metric is not None:
|
1230
1235
|
eval_uplift = (enriched_eval_results.metric - etalon_eval_results.metric) * multiplier
|
1236
|
+
eval_uplift_perc = eval_uplift / abs(etalon_eval_results.metric) * 100
|
1231
1237
|
else:
|
1232
1238
|
eval_uplift = None
|
1239
|
+
eval_uplift_perc = None
|
1233
1240
|
|
1234
1241
|
eval_metrics = {
|
1235
1242
|
self.bundle.get("quality_metrics_segment_header"): self.bundle.get(
|
@@ -1260,7 +1267,10 @@ class FeaturesEnricher(TransformerMixin):
|
|
1260
1267
|
enriched_eval_metric
|
1261
1268
|
)
|
1262
1269
|
if eval_uplift is not None:
|
1263
|
-
eval_metrics[self.bundle.get("quality_metrics_uplift_header")] = eval_uplift
|
1270
|
+
eval_metrics[self.bundle.get("quality_metrics_uplift_header")] = round(eval_uplift, 3)
|
1271
|
+
eval_metrics[self.bundle.get("quality_metrics_uplift_perc_header")] = (
|
1272
|
+
f"{round(eval_uplift_perc, 1)}%"
|
1273
|
+
)
|
1264
1274
|
|
1265
1275
|
metrics.append(eval_metrics)
|
1266
1276
|
|
@@ -284,8 +284,8 @@ quality_metrics_segment_header=Dataset type
|
|
284
284
|
quality_metrics_match_rate_header=Match rate
|
285
285
|
quality_metrics_baseline_header=Baseline {}
|
286
286
|
quality_metrics_enriched_header=Enriched {}
|
287
|
-
quality_metrics_uplift_header=Uplift
|
288
|
-
|
287
|
+
quality_metrics_uplift_header=Uplift, abs
|
288
|
+
quality_metrics_uplift_perc_header=Uplift, %
|
289
289
|
|
290
290
|
# Legacy native api messages
|
291
291
|
dataset_dataframe_or_path_empty=Either `df` or `path` must be provided
|
@@ -1,9 +1,9 @@
|
|
1
|
-
upgini/__about__.py,sha256=
|
1
|
+
upgini/__about__.py,sha256=TCqVix1Z4Eze5phtCvjrIOxc4bqjoaN5fjIL4q_OmWs,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=e6JDYTZ2AwC5aF-dqclKZKkiKrHo2f6cFmMQO2ZZmjM,32724
|
5
5
|
upgini/errors.py,sha256=2b_Wbo0OYhLUbrZqdLIx5jBnAsiD1Mcenh-VjR4HCTw,950
|
6
|
-
upgini/features_enricher.py,sha256=
|
6
|
+
upgini/features_enricher.py,sha256=gqXsghM1TjtTUXtrsqDQYFEkNA6gf4zqOdCfPYKnDv8,219124
|
7
7
|
upgini/http.py,sha256=4i7fQwrwU3WzDUOWzrgR-4C8eJwj_5dBwRAR-UjUtlc,44345
|
8
8
|
upgini/metadata.py,sha256=vsbbHyPCP3Rs8WkeDgQg99uAA_zmsbDStAT-NwDYhO4,12455
|
9
9
|
upgini/metrics.py,sha256=UbKEsHB7XDzoyGNqDx846zbh1t65GpqdnnhViccdoKU,45615
|
@@ -38,7 +38,7 @@ upgini/normalizer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
|
|
38
38
|
upgini/normalizer/normalize_utils.py,sha256=g2TcDXZeJp9kAFO2sTqZ4CAsN4J1qHNgoJHZ8gtzUWo,7376
|
39
39
|
upgini/resource_bundle/__init__.py,sha256=S5F2G47pnJd2LDpmFsjDqEwiKkP8Hm-hcseDbMka6Ko,8345
|
40
40
|
upgini/resource_bundle/exceptions.py,sha256=5fRvx0_vWdE1-7HcSgF0tckB4A9AKyf5RiinZkInTsI,621
|
41
|
-
upgini/resource_bundle/strings.properties,sha256=
|
41
|
+
upgini/resource_bundle/strings.properties,sha256=UO6K0wwvutyOyClOnJYlFYAETzMSen6hHnj3--5AIAs,28497
|
42
42
|
upgini/resource_bundle/strings_widget.properties,sha256=gOdqvZWntP2LCza_tyVk1_yRYcG4c04K9sQOAVhF_gw,1577
|
43
43
|
upgini/sampler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
44
44
|
upgini/sampler/base.py,sha256=7GpjYqjOp58vYcJLiX__1R5wjUlyQbxvHJ2klFnup_M,6389
|
@@ -71,7 +71,7 @@ upgini/utils/target_utils.py,sha256=i3Xt5l9ybB2_nF_ma5cfPuL3OeFTs2dY2xDI0p4Azpg,
|
|
71
71
|
upgini/utils/track_info.py,sha256=G5Lu1xxakg2_TQjKZk4b5SvrHsATTXNVV3NbvWtT8k8,5663
|
72
72
|
upgini/utils/ts_utils.py,sha256=26vhC0pN7vLXK6R09EEkMK3Lwb9IVPH7LRdqFIQ3kPs,1383
|
73
73
|
upgini/utils/warning_counter.py,sha256=-GRY8EUggEBKODPSuXAkHn9KnEQwAORC0mmz_tim-PM,254
|
74
|
-
upgini-1.2.
|
75
|
-
upgini-1.2.
|
76
|
-
upgini-1.2.
|
77
|
-
upgini-1.2.
|
74
|
+
upgini-1.2.96a2.dist-info/METADATA,sha256=UxJo1kNyV-BOPTrcplRgnnFraIMqzEZmML8RUR8hO-8,49530
|
75
|
+
upgini-1.2.96a2.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
76
|
+
upgini-1.2.96a2.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
|
77
|
+
upgini-1.2.96a2.dist-info/RECORD,,
|
File without changes
|
File without changes
|