upgini 1.2.123__py3-none-any.whl → 1.2.124__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 +4 -3
- upgini/metadata.py +3 -1
- {upgini-1.2.123.dist-info → upgini-1.2.124.dist-info}/METADATA +1 -1
- {upgini-1.2.123.dist-info → upgini-1.2.124.dist-info}/RECORD +7 -7
- {upgini-1.2.123.dist-info → upgini-1.2.124.dist-info}/WHEEL +0 -0
- {upgini-1.2.123.dist-info → upgini-1.2.124.dist-info}/licenses/LICENSE +0 -0
upgini/__about__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "1.2.
|
1
|
+
__version__ = "1.2.124"
|
upgini/features_enricher.py
CHANGED
@@ -284,8 +284,7 @@ class FeaturesEnricher(TransformerMixin):
|
|
284
284
|
self.country_code = country_code
|
285
285
|
self.__validate_search_keys(search_keys, search_id)
|
286
286
|
|
287
|
-
|
288
|
-
self.model_task_type = ModelTaskType.parse(model_task_type)
|
287
|
+
self.model_task_type = ModelTaskType.parse(model_task_type)
|
289
288
|
self.endpoint = endpoint
|
290
289
|
self._search_task: SearchTask | None = None
|
291
290
|
self.features_info: pd.DataFrame = self.EMPTY_FEATURES_INFO
|
@@ -2035,7 +2034,6 @@ class FeaturesEnricher(TransformerMixin):
|
|
2035
2034
|
|
2036
2035
|
# Sample after sorting by system_record_id for idempotency
|
2037
2036
|
df.sort_values(by=SYSTEM_RECORD_ID, inplace=True)
|
2038
|
-
df = self.__downsample_for_metrics(df)
|
2039
2037
|
|
2040
2038
|
if DateTimeSearchKeyConverter.DATETIME_COL in df.columns:
|
2041
2039
|
df = df.drop(columns=DateTimeSearchKeyConverter.DATETIME_COL)
|
@@ -2044,6 +2042,9 @@ class FeaturesEnricher(TransformerMixin):
|
|
2044
2042
|
generated_features = [columns_renaming.get(c, c) for c in generated_features]
|
2045
2043
|
search_keys = {columns_renaming.get(k, k): v for k, v in search_keys.items()}
|
2046
2044
|
|
2045
|
+
# It uses original columns names!
|
2046
|
+
df = self.__downsample_for_metrics(df)
|
2047
|
+
|
2047
2048
|
train_df = df.query(f"{EVAL_SET_INDEX} == 0") if eval_set is not None else df
|
2048
2049
|
X_sampled = train_df.drop(columns=[TARGET, EVAL_SET_INDEX], errors="ignore")
|
2049
2050
|
y_sampled = train_df[TARGET].copy()
|
upgini/metadata.py
CHANGED
@@ -163,7 +163,9 @@ class ModelTaskType(Enum):
|
|
163
163
|
return self in [ModelTaskType.BINARY, ModelTaskType.MULTICLASS]
|
164
164
|
|
165
165
|
@staticmethod
|
166
|
-
def parse(task_type: Any) -> "ModelTaskType":
|
166
|
+
def parse(task_type: Any) -> Optional["ModelTaskType"]:
|
167
|
+
if task_type is None:
|
168
|
+
return None
|
167
169
|
if isinstance(task_type, ModelTaskType):
|
168
170
|
return task_type
|
169
171
|
elif isinstance(task_type, str):
|
@@ -1,11 +1,11 @@
|
|
1
|
-
upgini/__about__.py,sha256=
|
1
|
+
upgini/__about__.py,sha256=BVLX26XWHqzeaXiLce8Wr2FrayZ3daxZy_Sdqvu_jrI,24
|
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=pQ8JQe0cdygD-W9GefJmfE6bnj4EYzXsjlgWdIS9nS8,31578
|
5
5
|
upgini/errors.py,sha256=2b_Wbo0OYhLUbrZqdLIx5jBnAsiD1Mcenh-VjR4HCTw,950
|
6
|
-
upgini/features_enricher.py,sha256=
|
6
|
+
upgini/features_enricher.py,sha256=unkzwcMx2kcCqSYzjOP3JzcCsIYMZs30nc0mviOLw5Y,231791
|
7
7
|
upgini/http.py,sha256=-J_wOpnwVnT0ebPC6sOs6fN3AWtCD0LJLu6nlYmxaqk,44348
|
8
|
-
upgini/metadata.py,sha256=
|
8
|
+
upgini/metadata.py,sha256=1j2LkkPmFAVaVmT__FT3nYNecf9NMpwY3YE_HN_YcrY,12541
|
9
9
|
upgini/metrics.py,sha256=KCPE_apPN-9BIdv6GqASbJVaB_gBcy8wzNApAcyaGo4,46020
|
10
10
|
upgini/search_task.py,sha256=SAiUd1AytbA2Q6PSnnztr7oTRKpud1wQZ5YtKjsmQHU,18256
|
11
11
|
upgini/spinner.py,sha256=4iMd-eIe_BnkqFEMIliULTbj6rNI2HkN_VJ4qYe0cUc,1118
|
@@ -74,7 +74,7 @@ upgini/utils/target_utils.py,sha256=GCPn4QeJ83JJ_vyBJ3IhY5fyIRkLC9q9BE59S2FRO1I,
|
|
74
74
|
upgini/utils/track_info.py,sha256=G5Lu1xxakg2_TQjKZk4b5SvrHsATTXNVV3NbvWtT8k8,5663
|
75
75
|
upgini/utils/ts_utils.py,sha256=26vhC0pN7vLXK6R09EEkMK3Lwb9IVPH7LRdqFIQ3kPs,1383
|
76
76
|
upgini/utils/warning_counter.py,sha256=-GRY8EUggEBKODPSuXAkHn9KnEQwAORC0mmz_tim-PM,254
|
77
|
-
upgini-1.2.
|
78
|
-
upgini-1.2.
|
79
|
-
upgini-1.2.
|
80
|
-
upgini-1.2.
|
77
|
+
upgini-1.2.124.dist-info/METADATA,sha256=4oYOnQTr7xUDah86SaJL141wp3linADEiUVcY0X60Vk,50743
|
78
|
+
upgini-1.2.124.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
79
|
+
upgini-1.2.124.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
|
80
|
+
upgini-1.2.124.dist-info/RECORD,,
|
File without changes
|
File without changes
|