upgini 1.1.194__py3-none-any.whl → 1.1.196__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/data_source/data_source_publisher.py +4 -1
- upgini/features_enricher.py +10 -7
- upgini/utils/display_utils.py +0 -2
- {upgini-1.1.194.dist-info → upgini-1.1.196.dist-info}/METADATA +1 -1
- {upgini-1.1.194.dist-info → upgini-1.1.196.dist-info}/RECORD +8 -8
- {upgini-1.1.194.dist-info → upgini-1.1.196.dist-info}/LICENSE +0 -0
- {upgini-1.1.194.dist-info → upgini-1.1.196.dist-info}/WHEEL +0 -0
- {upgini-1.1.194.dist-info → upgini-1.1.196.dist-info}/top_level.txt +0 -0
|
@@ -48,6 +48,7 @@ class DataSourcePublisher:
|
|
|
48
48
|
hash_feature_names=False,
|
|
49
49
|
snapshot_frequency_days: Optional[int] = None,
|
|
50
50
|
features_for_embeddings: Optional[List[str]] = DEFAULT_GENERATE_EMBEDDINGS,
|
|
51
|
+
data_table_id_to_replace: Optional[str] = None,
|
|
51
52
|
_force_generation=False,
|
|
52
53
|
) -> str:
|
|
53
54
|
trace_id = str(uuid.uuid4())
|
|
@@ -71,12 +72,14 @@ class DataSourcePublisher:
|
|
|
71
72
|
"hashFeatureNames": str(hash_feature_names).lower(),
|
|
72
73
|
"snapshotFrequencyDays": snapshot_frequency_days,
|
|
73
74
|
"featuresForEmbeddings": features_for_embeddings,
|
|
74
|
-
"forceGeneration": str(_force_generation).lower()
|
|
75
|
+
"forceGeneration": str(_force_generation).lower(),
|
|
75
76
|
}
|
|
76
77
|
if secondary_search_keys is not None:
|
|
77
78
|
request["secondarySearchKeys"] = {k: v.value.value for k, v in secondary_search_keys.items()}
|
|
78
79
|
if sort_column is not None:
|
|
79
80
|
request["sortColumn"] = sort_column
|
|
81
|
+
if data_table_id_to_replace is not None:
|
|
82
|
+
request["adsDefinitionIdToReplace"] = data_table_id_to_replace
|
|
80
83
|
self.logger.info(f"Start registering data table {request}")
|
|
81
84
|
|
|
82
85
|
task_id = self._rest_client.register_ads(request, trace_id)
|
upgini/features_enricher.py
CHANGED
|
@@ -2846,13 +2846,16 @@ class FeaturesEnricher(TransformerMixin):
|
|
|
2846
2846
|
print(self._internal_features_info)
|
|
2847
2847
|
|
|
2848
2848
|
def __show_report_button(self):
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2849
|
+
try:
|
|
2850
|
+
prepare_and_show_report(
|
|
2851
|
+
relevant_features_df=self._features_info_without_links,
|
|
2852
|
+
relevant_datasources_df=self.relevant_data_sources,
|
|
2853
|
+
metrics_df=self.metrics,
|
|
2854
|
+
search_id=self._search_task.search_task_id,
|
|
2855
|
+
email=get_rest_client(self.endpoint, self.api_key).get_current_email(),
|
|
2856
|
+
)
|
|
2857
|
+
except Exception:
|
|
2858
|
+
pass
|
|
2856
2859
|
|
|
2857
2860
|
def __validate_importance_threshold(self, importance_threshold: Optional[float]) -> float:
|
|
2858
2861
|
try:
|
upgini/utils/display_utils.py
CHANGED
|
@@ -248,8 +248,6 @@ def show_button_download_pdf(source: str, title="\U0001F4CA Download PDF report"
|
|
|
248
248
|
from IPython.display import HTML, display
|
|
249
249
|
|
|
250
250
|
file_name = f"upgini-report-{uuid.uuid4()}.pdf"
|
|
251
|
-
with open(file_name + ".html", "w") as f:
|
|
252
|
-
f.write(source)
|
|
253
251
|
with open(file_name, "wb") as output:
|
|
254
252
|
pisa.CreatePDF(src=BytesIO(source.encode("UTF-8")), dest=output)
|
|
255
253
|
|
|
@@ -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=_yGHGH18Z7bf24w0c1yeE-JtRjRBk2byf7HlSNXbPfw,47363
|
|
4
4
|
upgini/errors.py,sha256=BqpvfhW2jJW5fa5KXj0alhXatGl-WK4xTl309-QNLp8,959
|
|
5
|
-
upgini/features_enricher.py,sha256=
|
|
5
|
+
upgini/features_enricher.py,sha256=JqR2i8iTfd4IGC1vTt15TGeuUWi6MUlXWuXX9fyMIH0,146312
|
|
6
6
|
upgini/fingerprint.js,sha256=VygVIQlN1v4NGZfjHqtRogOw8zjTnnMNJg_f7M5iGQU,33442
|
|
7
7
|
upgini/http.py,sha256=5t8t9KplLzZQhaoUbxVS-C0-Q78og-aAIUoAn_8dgdw,39538
|
|
8
8
|
upgini/metadata.py,sha256=9Hm9L7efMGIRSfPUYZ_RUBW7_WMeeTL1fGhylMSvR7w,6135
|
|
@@ -13,7 +13,7 @@ upgini/version_validator.py,sha256=rDIncP6BEko4J2F2hUcMOtKm_vZbI4ICWcNcw8hrwM4,1
|
|
|
13
13
|
upgini/ads_management/__init__.py,sha256=qzyisOToVRP-tquAJD1PblZhNtMrOB8FiyF9JvfkvgE,50
|
|
14
14
|
upgini/ads_management/ads_manager.py,sha256=O6Pcl_y5e_ULfQ-xmGGn_qBP4z7EtV7TP9etjrsLkLE,2647
|
|
15
15
|
upgini/data_source/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
|
-
upgini/data_source/data_source_publisher.py,sha256=
|
|
16
|
+
upgini/data_source/data_source_publisher.py,sha256=bpYVbzX9VAh-H1SPutB_efmpwVXZpnQEkdGQYAT9XDs,10724
|
|
17
17
|
upgini/mdc/__init__.py,sha256=CuKmWYCqAnmiq1S7wgMzJhSCTsXuoeiZWXSfzw0lyig,1152
|
|
18
18
|
upgini/mdc/context.py,sha256=eVNEubcgkiAP139Vna2qtUBZJWoy15rWWAuB0TFv54E,1484
|
|
19
19
|
upgini/normalizer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -32,7 +32,7 @@ upgini/utils/country_utils.py,sha256=9BXSXoGm3nVoOZE_bRENY-KMkwMUFvAF3Au0zxUNA1o
|
|
|
32
32
|
upgini/utils/custom_loss_utils.py,sha256=DBslpjWGPt7xTeypt78baR59012SYphbPsO_YLKdilo,3972
|
|
33
33
|
upgini/utils/cv_utils.py,sha256=X-u6Ndnv9jcQoE0jYS11zbyVd4d6IZ4UALn4raLqZ2I,2393
|
|
34
34
|
upgini/utils/datetime_utils.py,sha256=wS_wBme83H3n3eAVDTL1QFjCG6oFLJ8bxB9Aqs9z-sg,5942
|
|
35
|
-
upgini/utils/display_utils.py,sha256=
|
|
35
|
+
upgini/utils/display_utils.py,sha256=SBkoFbhewVABKV2waM-IM7-jwCVAWB-YPBuOv5l50bU,8663
|
|
36
36
|
upgini/utils/email_utils.py,sha256=MhCLUAWqbp81xRyKizauNhVx6t_MFeJQRQ8pFM7EpFo,3480
|
|
37
37
|
upgini/utils/fallback_progress_bar.py,sha256=f-VzVbiO6oU9WoKzEgoegYotixdiKanGlvdQCOGC-NY,1128
|
|
38
38
|
upgini/utils/features_validator.py,sha256=iP8muF3PUf_aP9m7O3i3LPMuJPTNbw8rCAWqgvDt_h8,2369
|
|
@@ -45,8 +45,8 @@ upgini/utils/sklearn_ext.py,sha256=IMx2La70AXAggApVpT7sMEjWqVWon5AMZt4MARDsIMQ,4
|
|
|
45
45
|
upgini/utils/target_utils.py,sha256=cu52icjhDIPpEStHYMXrD2hIl9gzvfnxZr0Ra5osV0k,1616
|
|
46
46
|
upgini/utils/track_info.py,sha256=2IGGyHPXBLhWcLO8-Q-5qir52k_kD6DtdU-sv_Z2hHY,5325
|
|
47
47
|
upgini/utils/warning_counter.py,sha256=vnmdFo5-7GBkU2bK9h_uC0K0Y_wtfcYstxOdeRfacO0,228
|
|
48
|
-
upgini-1.1.
|
|
49
|
-
upgini-1.1.
|
|
50
|
-
upgini-1.1.
|
|
51
|
-
upgini-1.1.
|
|
52
|
-
upgini-1.1.
|
|
48
|
+
upgini-1.1.196.dist-info/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
|
|
49
|
+
upgini-1.1.196.dist-info/METADATA,sha256=w4G6l9Cyn4TR1x6Q8hyI0QjGJYr6PE1bKOk76UdeGvE,47985
|
|
50
|
+
upgini-1.1.196.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
51
|
+
upgini-1.1.196.dist-info/top_level.txt,sha256=OFhTGiDIWKl5gFI49qvWq1R9IKflPaE2PekcbDXDtx4,7
|
|
52
|
+
upgini-1.1.196.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|