upgini 1.2.131__py3-none-any.whl → 1.2.133a1__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 +1 -0
- upgini/utils/display_utils.py +17 -13
- {upgini-1.2.131.dist-info → upgini-1.2.133a1.dist-info}/METADATA +4 -4
- {upgini-1.2.131.dist-info → upgini-1.2.133a1.dist-info}/RECORD +7 -7
- {upgini-1.2.131.dist-info → upgini-1.2.133a1.dist-info}/WHEEL +0 -0
- {upgini-1.2.131.dist-info → upgini-1.2.133a1.dist-info}/licenses/LICENSE +0 -0
upgini/__about__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.2.
|
|
1
|
+
__version__ = "1.2.133a1"
|
upgini/features_enricher.py
CHANGED
upgini/utils/display_utils.py
CHANGED
|
@@ -8,7 +8,6 @@ from io import StringIO
|
|
|
8
8
|
from typing import Callable, List, Optional
|
|
9
9
|
|
|
10
10
|
import pandas as pd
|
|
11
|
-
from xhtml2pdf import pisa
|
|
12
11
|
|
|
13
12
|
from upgini.__about__ import __version__
|
|
14
13
|
|
|
@@ -325,18 +324,23 @@ def show_button_download_pdf(
|
|
|
325
324
|
|
|
326
325
|
# html = HTML(string=source)
|
|
327
326
|
# html.write_pdf(file_name)
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
327
|
+
try:
|
|
328
|
+
from xhtml2pdf import pisa
|
|
329
|
+
|
|
330
|
+
with open(file_name, "wb") as output:
|
|
331
|
+
pisa.CreatePDF(src=StringIO(source), dest=output, encoding="UTF-8")
|
|
332
|
+
|
|
333
|
+
with open(file_name, "rb") as f:
|
|
334
|
+
b64 = base64.b64encode(f.read())
|
|
335
|
+
payload = b64.decode()
|
|
336
|
+
html = f"""<a download="{file_name}" href="data:application/pdf;base64,{payload}" target="_blank">
|
|
337
|
+
<button>{title}</button></a>"""
|
|
338
|
+
if display_handle is not None:
|
|
339
|
+
display_handle.update(HTML(html))
|
|
340
|
+
else:
|
|
341
|
+
return display(HTML(html), display_id=display_id)
|
|
342
|
+
except Exception:
|
|
343
|
+
pass
|
|
340
344
|
|
|
341
345
|
|
|
342
346
|
def show_request_quote_button(is_registered: bool):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: upgini
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.133a1
|
|
4
4
|
Summary: Intelligent data search & enrichment for Machine Learning
|
|
5
5
|
Project-URL: Bug Reports, https://github.com/upgini/upgini/issues
|
|
6
6
|
Project-URL: Homepage, https://upgini.com/
|
|
@@ -181,7 +181,7 @@ Run [Simple sales prediction for retail stores](https://github.com/upgini/upgini
|
|
|
181
181
|
[](https://gitpod.io/#/github.com/upgini/upgini)
|
|
182
182
|
-->
|
|
183
183
|
|
|
184
|
-
### ❓ [How to boost ML model accuracy for Kaggle Top-1 leaderboard in
|
|
184
|
+
### ❓ [How to boost ML model accuracy for Kaggle Top-1 leaderboard in 15 minutes](https://www.kaggle.com/code/nikupgini/how-to-find-external-data-for-1-private-lb-4-53/notebook)
|
|
185
185
|
|
|
186
186
|
* The goal is **to improve a Top‑1 winning Kaggle solution** by adding new relevant external features and data.
|
|
187
187
|
* [Kaggle Competition](https://www.kaggle.com/competitions/tabular-playground-series-jan-2022/) is a product sales forecasting competition; the evaluation metric is [SMAPE](https://en.wikipedia.org/wiki/Symmetric_mean_absolute_percentage_error).
|
|
@@ -688,14 +688,14 @@ If a training dataset has a text column, you can generate additional embeddings
|
|
|
688
688
|
|
|
689
689
|
In most cases, this gives better results than direct embeddings generation from a text field. Currently, Upgini has two LLMs connected to the search engine - GPT-3.5 from OpenAI and GPT-J.
|
|
690
690
|
|
|
691
|
-
To use this feature, pass the column names as arguments to the `
|
|
691
|
+
To use this feature, pass the column names as arguments to the `text_features` parameter. You can use up to 2 columns.
|
|
692
692
|
|
|
693
693
|
Here's an example for generating features from the "description" and "summary" columns:
|
|
694
694
|
|
|
695
695
|
```python
|
|
696
696
|
enricher = FeaturesEnricher(
|
|
697
697
|
search_keys={"date": SearchKey.DATE},
|
|
698
|
-
|
|
698
|
+
text_features=["description", "summary"]
|
|
699
699
|
)
|
|
700
700
|
```
|
|
701
701
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
upgini/__about__.py,sha256
|
|
1
|
+
upgini/__about__.py,sha256=2J0xRzQRVTKW9-UjHayhhp4WFFpAteaH5RVfrXavaz0,26
|
|
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=Nm2ZmwyQqvTnymYpGUwyJWy7y2ebXlHMyYmGeGcyA_s,31652
|
|
5
5
|
upgini/errors.py,sha256=2b_Wbo0OYhLUbrZqdLIx5jBnAsiD1Mcenh-VjR4HCTw,950
|
|
6
|
-
upgini/features_enricher.py,sha256=
|
|
6
|
+
upgini/features_enricher.py,sha256=Na-W1f5xQVUKF4_m2Bw8mM29kLD8N3U7p9-FU0J9bi8,234415
|
|
7
7
|
upgini/http.py,sha256=-J_wOpnwVnT0ebPC6sOs6fN3AWtCD0LJLu6nlYmxaqk,44348
|
|
8
8
|
upgini/metadata.py,sha256=H3wiN37k-yqWZgbPD0tJzx8DzaCIkgmX5cybhByQWLg,12619
|
|
9
9
|
upgini/metrics.py,sha256=KCPE_apPN-9BIdv6GqASbJVaB_gBcy8wzNApAcyaGo4,46020
|
|
@@ -54,7 +54,7 @@ upgini/utils/custom_loss_utils.py,sha256=kieNZYBYZm5ZGBltF1F_jOSF4ea6C29rYuCyiDc
|
|
|
54
54
|
upgini/utils/cv_utils.py,sha256=w6FQb9nO8BWDx88EF83NpjPLarK4eR4ia0Wg0kLBJC4,3525
|
|
55
55
|
upgini/utils/datetime_utils.py,sha256=l85UzSQLhtMeI2G6m-m8y8bCColCLSXNHb2-G6fKpLM,16988
|
|
56
56
|
upgini/utils/deduplicate_utils.py,sha256=CLX0QapRxB-ZVQT7yGvv1vSd2zac5SwRjCJavujdCps,11332
|
|
57
|
-
upgini/utils/display_utils.py,sha256=
|
|
57
|
+
upgini/utils/display_utils.py,sha256=MoTqXZJvC6pAqgOaI3V0FG-IU_LnMfrn4TDcNvUqsdg,13316
|
|
58
58
|
upgini/utils/email_utils.py,sha256=pZ2vCfNxLIPUhxr0-OlABNXm12jjU44isBk8kGmqQzA,5277
|
|
59
59
|
upgini/utils/fallback_progress_bar.py,sha256=PDaKb8dYpVZaWMroNcOHsTc3pSjgi9mOm0--cOFTwJ0,1074
|
|
60
60
|
upgini/utils/feature_info.py,sha256=SQTRbSxJDkh2G2c0KGBmOv8f69gVzWbTtcXn0_2Qb-8,7945
|
|
@@ -74,7 +74,7 @@ upgini/utils/target_utils.py,sha256=CihpV6SC95HwtlMH60rGAUzVDa4Id0Bva8ySprmNHlE,
|
|
|
74
74
|
upgini/utils/track_info.py,sha256=NDKeQTUlZaYp15UoP-xLKGoDoJQ0drbDMwB0g9R0PUg,6427
|
|
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.133a1.dist-info/METADATA,sha256=oveLN_pPi2K1BqqAnu5ZnGXVMl7TeD65Jg1biA1drE0,51135
|
|
78
|
+
upgini-1.2.133a1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
79
|
+
upgini-1.2.133a1.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
|
|
80
|
+
upgini-1.2.133a1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|