upgini 1.1.282a3418.post1__py3-none-any.whl → 1.1.282a3418.post2__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 CHANGED
@@ -1 +1 @@
1
- __version__ = "1.1.282a3418-1"
1
+ __version__ = "1.1.282a3418-2"
upgini/autofe/feature.py CHANGED
@@ -1,6 +1,6 @@
1
1
  import hashlib
2
2
  import itertools
3
- from typing import Dict, List, Optional, Tuple, Union
3
+ from typing import Dict, List, Optional, Set, Tuple, Union
4
4
 
5
5
  import numpy as np
6
6
  import pandas as pd
@@ -94,6 +94,11 @@ class Feature:
94
94
  self.alias = alias
95
95
  return self
96
96
 
97
+ def get_all_operand_names(self) -> Set[str]:
98
+ return {self.op.name}.union(
99
+ {n for f in self.children if isinstance(f, Feature) for n in f.get_all_operand_names()}
100
+ )
101
+
97
102
  def rename_columns(self, mapping: Dict[str, str]) -> "Feature":
98
103
  for child in self.children:
99
104
  child.rename_columns(mapping)
@@ -1442,15 +1442,12 @@ class FeaturesEnricher(TransformerMixin):
1442
1442
  if len(decimal_columns_to_fix) > 0:
1443
1443
  for col in decimal_columns_to_fix:
1444
1444
  fitting_eval_X[col] = (
1445
- fitting_eval_X[col]
1446
- .astype("string").str
1447
- .replace(",", ".", regex=False)
1448
- .astype(np.float64)
1445
+ fitting_eval_X[col].astype("string").str.replace(",", ".", regex=False).astype(np.float64)
1449
1446
  )
1450
1447
  fitting_enriched_eval_X[col] = (
1451
1448
  fitting_enriched_eval_X[col]
1452
- .astype("string").str
1453
- .replace(",", ".", regex=False)
1449
+ .astype("string")
1450
+ .str.replace(",", ".", regex=False)
1454
1451
  .astype(np.float64)
1455
1452
  )
1456
1453
 
@@ -3293,7 +3290,7 @@ class FeaturesEnricher(TransformerMixin):
3293
3290
  description[f"Feature {feature_idx}"] = bc.hashed_name
3294
3291
  feature_idx += 1
3295
3292
 
3296
- description["Function"] = autofe_feature.op.name
3293
+ description["Function"] = ",".join(sorted(autofe_feature.get_all_operand_names()))
3297
3294
 
3298
3295
  descriptions.append(description)
3299
3296
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: upgini
3
- Version: 1.1.282a3418.post1
3
+ Version: 1.1.282a3418.post2
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/
@@ -1,9 +1,9 @@
1
- upgini/__about__.py,sha256=GG1GC75bod-mGb53WjhL__a8G9_p00TZYiKG5snDjHQ,31
1
+ upgini/__about__.py,sha256=Enn127dFkXgCRELxuH2LQtSbMgcCcZZbvp1uqqge82o,31
2
2
  upgini/__init__.py,sha256=asENHgEVHQBIkV-e_0IhE_ZWqkCG6398U3ZLrNzAH6k,407
3
3
  upgini/ads.py,sha256=nvuRxRx5MHDMgPr9SiU-fsqRdFaBv8p4_v1oqiysKpc,2714
4
4
  upgini/dataset.py,sha256=7TLVVhGtjgx_9yaiaIUK3kZSe_R9wg5dY0d4F5qCGM4,45636
5
5
  upgini/errors.py,sha256=2b_Wbo0OYhLUbrZqdLIx5jBnAsiD1Mcenh-VjR4HCTw,950
6
- upgini/features_enricher.py,sha256=J1x1YMoJBWMFWhdvP-_h7X67qEoTcLqkRRMrz8I1XKQ,176885
6
+ upgini/features_enricher.py,sha256=2BFtU8TxIyP1cdyoct8q3ULSaStw534kwi-3syYMQ-Y,176844
7
7
  upgini/http.py,sha256=khrYSldpY-HbVLCcApfV1BjBFK6Uyuatb4colKybxgY,42301
8
8
  upgini/metadata.py,sha256=CFJekYGD7Ep7pRFH7wCEcsXS4bz83do33FNmtcCY9P4,9729
9
9
  upgini/metrics.py,sha256=tTXAgjEuoo_vDe4n-R0AFK95IIx_7kugIJJJv2Hr_1o,30128
@@ -16,7 +16,7 @@ upgini/autofe/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  upgini/autofe/all_operands.py,sha256=7UyvmmqGSqQu4kDgoFwQRKY__b9xKDk3Fpp2-H8A7AA,2399
17
17
  upgini/autofe/binary.py,sha256=441BRuqMsxlxuw4c8rMZB6h5EpRdVMk-bVa03U7T5Hg,3973
18
18
  upgini/autofe/date.py,sha256=XeTJIkPzauYXgI3n5E8h4353PhZRZ7LOpQGHA4DMPx4,6758
19
- upgini/autofe/feature.py,sha256=x7sumlIZqSE020XAkoykaesUjmmdYhaa0iFPKxBuDXo,12285
19
+ upgini/autofe/feature.py,sha256=_V9B74B3ue7eAYXSOt9JKhVC9klkAKks22MwnBRye_w,12487
20
20
  upgini/autofe/groupby.py,sha256=4WjDzQxqpZxB79Ih4ihMMI5GDxaFqiH6ZelfV82ClT4,3091
21
21
  upgini/autofe/operand.py,sha256=JjEVT1U3kY9NDjUPMdoki7Oa8hMDG0-_h_NklVjIFyc,2882
22
22
  upgini/autofe/unary.py,sha256=v-l3aiE5hj6kurvh6adCQL8W3X9u9a7RVbS_WPR2qlw,3146
@@ -56,7 +56,7 @@ upgini/utils/sklearn_ext.py,sha256=c23MGSUVfxLnaDWKAxavHgnOtm5dGKkF3YswdWQcFzs,4
56
56
  upgini/utils/target_utils.py,sha256=Y96_PJ5cC-WsEbeqg20v9uqywDQobLoTb-xoP7S3o4E,7807
57
57
  upgini/utils/track_info.py,sha256=G5Lu1xxakg2_TQjKZk4b5SvrHsATTXNVV3NbvWtT8k8,5663
58
58
  upgini/utils/warning_counter.py,sha256=dIWBB4dI5XRRJZudvIlqlIYKEiwLLPcXarsZuYRt338,227
59
- upgini-1.1.282a3418.post1.dist-info/METADATA,sha256=XEY5jBcIoE7tG5ivbqU_75frPJwXZeMViN7fKn5wBv0,48129
60
- upgini-1.1.282a3418.post1.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
61
- upgini-1.1.282a3418.post1.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
62
- upgini-1.1.282a3418.post1.dist-info/RECORD,,
59
+ upgini-1.1.282a3418.post2.dist-info/METADATA,sha256=CDb5qhFVanj858fFyP7b96wf8UflZGzr38IeHoMiXD8,48129
60
+ upgini-1.1.282a3418.post2.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
61
+ upgini-1.1.282a3418.post2.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
62
+ upgini-1.1.282a3418.post2.dist-info/RECORD,,