upgini 1.2.25a1__py3-none-any.whl → 1.2.26__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 +2 -5
- upgini/resource_bundle/strings.properties +1 -1
- upgini/utils/display_utils.py +0 -1
- upgini/utils/target_utils.py +4 -1
- {upgini-1.2.25a1.dist-info → upgini-1.2.26.dist-info}/METADATA +1 -1
- {upgini-1.2.25a1.dist-info → upgini-1.2.26.dist-info}/RECORD +9 -9
- {upgini-1.2.25a1.dist-info → upgini-1.2.26.dist-info}/WHEEL +0 -0
- {upgini-1.2.25a1.dist-info → upgini-1.2.26.dist-info}/licenses/LICENSE +0 -0
upgini/__about__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.2.
|
|
1
|
+
__version__ = "1.2.26"
|
upgini/features_enricher.py
CHANGED
|
@@ -3194,9 +3194,8 @@ class FeaturesEnricher(TransformerMixin):
|
|
|
3194
3194
|
|
|
3195
3195
|
return df
|
|
3196
3196
|
|
|
3197
|
-
@staticmethod
|
|
3198
3197
|
def _add_current_date_as_key(
|
|
3199
|
-
df: pd.DataFrame, search_keys: Dict[str, SearchKey], logger: logging.Logger, bundle: ResourceBundle
|
|
3198
|
+
self, df: pd.DataFrame, search_keys: Dict[str, SearchKey], logger: logging.Logger, bundle: ResourceBundle
|
|
3200
3199
|
) -> pd.DataFrame:
|
|
3201
3200
|
if (
|
|
3202
3201
|
set(search_keys.values()) == {SearchKey.PHONE}
|
|
@@ -3204,9 +3203,7 @@ class FeaturesEnricher(TransformerMixin):
|
|
|
3204
3203
|
or set(search_keys.values()) == {SearchKey.HEM}
|
|
3205
3204
|
or set(search_keys.values()) == {SearchKey.COUNTRY, SearchKey.POSTAL_CODE}
|
|
3206
3205
|
):
|
|
3207
|
-
|
|
3208
|
-
print(msg)
|
|
3209
|
-
logger.warning(msg)
|
|
3206
|
+
self.__log_warning(bundle.get("current_date_added"))
|
|
3210
3207
|
df[FeaturesEnricher.CURRENT_DATE] = datetime.date.today()
|
|
3211
3208
|
search_keys[FeaturesEnricher.CURRENT_DATE] = SearchKey.DATE
|
|
3212
3209
|
converter = DateTimeSearchKeyConverter(FeaturesEnricher.CURRENT_DATE)
|
|
@@ -9,7 +9,7 @@ search_stopped=Search request stopped
|
|
|
9
9
|
polling_search_task=\nRunning search request, search_id={}
|
|
10
10
|
polling_unregister_information=We'll send email notification once it's completed, just use your personal api_key from profile.upgini.com
|
|
11
11
|
ads_upload_finish=Thank you for your submission!\nWe'll check your data sharing proposal and get back to you
|
|
12
|
-
demo_dataset_info=Demo training dataset detected. Registration for an API key is not required
|
|
12
|
+
demo_dataset_info=Demo training dataset detected. Registration for an API key is not required.\n
|
|
13
13
|
transform_usage_info=You use Trial access to Upgini data enrichment. Limit for Trial: {} rows. You have already enriched: {} rows.
|
|
14
14
|
transform_usage_warning=You are trying to launch enrichment for {} rows, which will exceed the rest limit {}.
|
|
15
15
|
|
upgini/utils/display_utils.py
CHANGED
|
@@ -169,7 +169,6 @@ def make_html_report(
|
|
|
169
169
|
from pkg_resources import resource_filename
|
|
170
170
|
font_path = resource_filename('upgini.utils', 'Roboto-Regular.ttf')
|
|
171
171
|
|
|
172
|
-
print(font_path)
|
|
173
172
|
return f"""<html>
|
|
174
173
|
<head>
|
|
175
174
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
upgini/utils/target_utils.py
CHANGED
|
@@ -3,7 +3,7 @@ from typing import Optional, Union
|
|
|
3
3
|
|
|
4
4
|
import numpy as np
|
|
5
5
|
import pandas as pd
|
|
6
|
-
from pandas.api.types import is_numeric_dtype
|
|
6
|
+
from pandas.api.types import is_numeric_dtype, is_bool_dtype
|
|
7
7
|
|
|
8
8
|
from upgini.errors import ValidationError
|
|
9
9
|
from upgini.metadata import SYSTEM_RECORD_ID, ModelTaskType
|
|
@@ -232,6 +232,9 @@ def balance_undersample(
|
|
|
232
232
|
def calculate_psi(expected: pd.Series, actual: pd.Series) -> float:
|
|
233
233
|
df = pd.concat([expected, actual])
|
|
234
234
|
|
|
235
|
+
if is_bool_dtype(df):
|
|
236
|
+
df = np.where(df, 1, 0)
|
|
237
|
+
|
|
235
238
|
# Define the bins for the target variable
|
|
236
239
|
df_min = df.min()
|
|
237
240
|
df_max = df.max()
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
upgini/__about__.py,sha256=
|
|
1
|
+
upgini/__about__.py,sha256=8uhHORUThu_bp8-miLA4O6Em4FxNLHbY_K0t053StGY,23
|
|
2
2
|
upgini/__init__.py,sha256=M64LwQTBa-5Jz24Zm2h8rWwlKQQ1J8nP7gGgIciS0WU,589
|
|
3
3
|
upgini/ads.py,sha256=nvuRxRx5MHDMgPr9SiU-fsqRdFaBv8p4_v1oqiysKpc,2714
|
|
4
4
|
upgini/dataset.py,sha256=iPFiMJtk4HF1ytw9wCQr8H9RfoOKj_TIo8XYZKWgcMc,31331
|
|
5
5
|
upgini/errors.py,sha256=2b_Wbo0OYhLUbrZqdLIx5jBnAsiD1Mcenh-VjR4HCTw,950
|
|
6
|
-
upgini/features_enricher.py,sha256=
|
|
6
|
+
upgini/features_enricher.py,sha256=V1zzUHYzmhdouZVdoFBbMH1OIqUCqV1p0mIXfcTvj6Y,193614
|
|
7
7
|
upgini/http.py,sha256=21asexflvavydzCOONJDGQBtQanCElrbnqLXakJ9Cu8,42880
|
|
8
8
|
upgini/lazy_import.py,sha256=74gQ8JuA48BGRLxAo7lNHNKY2D2emMxrUxKGdxVGhuY,1012
|
|
9
9
|
upgini/metadata.py,sha256=osmzdNESeh7yP3BZday6N9Q3eaIHfzhhRM1d6NSgcf0,11223
|
|
@@ -30,7 +30,7 @@ upgini/normalizer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
|
|
|
30
30
|
upgini/normalizer/normalize_utils.py,sha256=Ft2MwSgVoBilXAORAOYAuwPD79GOLfwn4qQE3IUFzzg,7218
|
|
31
31
|
upgini/resource_bundle/__init__.py,sha256=S5F2G47pnJd2LDpmFsjDqEwiKkP8Hm-hcseDbMka6Ko,8345
|
|
32
32
|
upgini/resource_bundle/exceptions.py,sha256=5fRvx0_vWdE1-7HcSgF0tckB4A9AKyf5RiinZkInTsI,621
|
|
33
|
-
upgini/resource_bundle/strings.properties,sha256=
|
|
33
|
+
upgini/resource_bundle/strings.properties,sha256=l3yg9H17NwCwvfZQyOYTvXbPP6mwdXH_CGlqyxOQVFY,26669
|
|
34
34
|
upgini/resource_bundle/strings_widget.properties,sha256=gOdqvZWntP2LCza_tyVk1_yRYcG4c04K9sQOAVhF_gw,1577
|
|
35
35
|
upgini/sampler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
36
36
|
upgini/sampler/base.py,sha256=7GpjYqjOp58vYcJLiX__1R5wjUlyQbxvHJ2klFnup_M,6389
|
|
@@ -45,7 +45,7 @@ upgini/utils/custom_loss_utils.py,sha256=kieNZYBYZm5ZGBltF1F_jOSF4ea6C29rYuCyiDc
|
|
|
45
45
|
upgini/utils/cv_utils.py,sha256=w6FQb9nO8BWDx88EF83NpjPLarK4eR4ia0Wg0kLBJC4,3525
|
|
46
46
|
upgini/utils/datetime_utils.py,sha256=a8X4jX2y3-6E7ZNZIG5z61qfzCvsvaNEjR1Bi5KUqfM,11279
|
|
47
47
|
upgini/utils/deduplicate_utils.py,sha256=SMZx9IKIhWI5HqXepfKiQb3uDJrogQZtG6jcWuMo5Z4,8855
|
|
48
|
-
upgini/utils/display_utils.py,sha256=
|
|
48
|
+
upgini/utils/display_utils.py,sha256=DsBjJ8jEYAh8BPgfAbzq5imoGFV6IACP20PQ78BQCX0,11964
|
|
49
49
|
upgini/utils/email_utils.py,sha256=j0Ug1R_0AnCg1Y92zIZ4XMwvKo3G5_pcOlBN1OH_gZs,5191
|
|
50
50
|
upgini/utils/fallback_progress_bar.py,sha256=PDaKb8dYpVZaWMroNcOHsTc3pSjgi9mOm0--cOFTwJ0,1074
|
|
51
51
|
upgini/utils/features_validator.py,sha256=1Xj2ir5LzzYiX3NH8o88c2J6RTTetaTwu0MhjLTyuvM,3378
|
|
@@ -55,10 +55,10 @@ upgini/utils/phone_utils.py,sha256=IrbztLuOJBiePqqxllfABWfYlfAjYevPhXKipl95wUI,1
|
|
|
55
55
|
upgini/utils/postal_code_utils.py,sha256=5M0sUqH2DAr33kARWCTXR-ACyzWbjDq_-0mmEml6ZcU,1716
|
|
56
56
|
upgini/utils/progress_bar.py,sha256=N-Sfdah2Hg8lXP_fV9EfUTXz_PyRt4lo9fAHoUDOoLc,1550
|
|
57
57
|
upgini/utils/sklearn_ext.py,sha256=13jQS_k7v0aUtudXV6nGUEWjttPQzAW9AFYL5wgEz9k,44511
|
|
58
|
-
upgini/utils/target_utils.py,sha256=
|
|
58
|
+
upgini/utils/target_utils.py,sha256=8R11IpwHxaEPJ5T2lcxXyeGFDuN6vquwlJep4ack-Ug,10159
|
|
59
59
|
upgini/utils/track_info.py,sha256=G5Lu1xxakg2_TQjKZk4b5SvrHsATTXNVV3NbvWtT8k8,5663
|
|
60
60
|
upgini/utils/warning_counter.py,sha256=-GRY8EUggEBKODPSuXAkHn9KnEQwAORC0mmz_tim-PM,254
|
|
61
|
-
upgini-1.2.
|
|
62
|
-
upgini-1.2.
|
|
63
|
-
upgini-1.2.
|
|
64
|
-
upgini-1.2.
|
|
61
|
+
upgini-1.2.26.dist-info/METADATA,sha256=vPNo6WUZ5Ypkvs0dVfV8i5sch4pCwsC_QkOac5SOZqA,48578
|
|
62
|
+
upgini-1.2.26.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
63
|
+
upgini-1.2.26.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
|
|
64
|
+
upgini-1.2.26.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|