upgini 1.2.65a3818.dev5__py3-none-any.whl → 1.2.65a3818.dev6__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.2.65a3818.dev5"
1
+ __version__ = "1.2.65a3818.dev6"
upgini/autofe/feature.py CHANGED
@@ -6,7 +6,7 @@ import numpy as np
6
6
  import pandas as pd
7
7
  from pandas._typing import DtypeObj
8
8
 
9
- from upgini.autofe.all_operands import find_op
9
+ from upgini.autofe.all_operators import find_op
10
10
  from upgini.autofe.operator import Operator, PandasOperator
11
11
 
12
12
 
@@ -112,7 +112,7 @@ class Feature:
112
112
 
113
113
  def get_hash(self) -> str:
114
114
  return hashlib.sha256(
115
- "_".join([self.op.to_formula()] + [ch.get_display_name() for ch in self.children]).encode("utf-8")
115
+ "_".join([self.op.get_hash_component()] + [ch.get_display_name() for ch in self.children]).encode("utf-8")
116
116
  ).hexdigest()[:8]
117
117
 
118
118
  def set_alias(self, alias: str) -> "Feature":
upgini/autofe/operator.py CHANGED
@@ -76,6 +76,9 @@ class Operator(BaseModel, metaclass=OperatorRegistry):
76
76
  def to_formula(self) -> str:
77
77
  return self.name
78
78
 
79
+ def get_hash_component(self) -> str:
80
+ return self.to_formula()
81
+
79
82
 
80
83
  class ParametrizedOperator(Operator, abc.ABC):
81
84
 
@@ -8,7 +8,7 @@ try:
8
8
  except ImportError:
9
9
  from pydantic import validator # V1
10
10
 
11
- from upgini.autofe.all_operands import find_op
11
+ from upgini.autofe.all_operators import find_op
12
12
  from upgini.autofe.operator import PandasOperator, ParametrizedOperator
13
13
  from upgini.autofe.timeseries.base import TimeSeriesBase
14
14
 
@@ -95,6 +95,15 @@ class CrossSeriesInteraction(TimeSeriesBase, ParametrizedOperator):
95
95
  )
96
96
  return res
97
97
 
98
+ def get_hash_component(self) -> str:
99
+ inner_components = [
100
+ self.to_formula(),
101
+ "_".join(str(i) for i in self.descriptor_indices),
102
+ "_".join(self.left_descriptor),
103
+ "_".join(self.right_descriptor),
104
+ ]
105
+ return "_".join(inner_components)
106
+
98
107
  def _get_interaction_op_name(self) -> str:
99
108
  return self.interaction_op.alias or self.interaction_op.to_formula()
100
109
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: upgini
3
- Version: 1.2.65a3818.dev5
3
+ Version: 1.2.65a3818.dev6
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,4 +1,4 @@
1
- upgini/__about__.py,sha256=WOd200tkoJAB3TJo-txEZDg-U6YHThQugeQsJTyxs64,33
1
+ upgini/__about__.py,sha256=eiDtjiIjMsBgSWrJJikBsClurYrFLD_AmN8JsBwM_Zs,33
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=OGjpeFHbj3lWiZTOHTpWEoMMDmFY1FlNC44FKktoZvU,34956
@@ -14,17 +14,17 @@ upgini/version_validator.py,sha256=DvbaAvuYFoJqYt0fitpsk6Xcv-H1BYDJYHUMxaKSH_Y,1
14
14
  upgini/ads_management/__init__.py,sha256=qzyisOToVRP-tquAJD1PblZhNtMrOB8FiyF9JvfkvgE,50
15
15
  upgini/ads_management/ads_manager.py,sha256=igVbN2jz80Umb2BUJixmJVj-zx8unoKpecVo-R-nGdw,2648
16
16
  upgini/autofe/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
- upgini/autofe/all_operands.py,sha256=rdjF5eaE4bC6Q4eu_el5Z7ekYt8DjOFermz2bePPbUc,333
17
+ upgini/autofe/all_operators.py,sha256=rdjF5eaE4bC6Q4eu_el5Z7ekYt8DjOFermz2bePPbUc,333
18
18
  upgini/autofe/binary.py,sha256=MnQuFiERpocjCPQUjOljlsq5FE-04GPfwtNjzvfNMyU,7671
19
19
  upgini/autofe/date.py,sha256=I07psJerrxOcHao91PdSCk9X6KWu61IBVyFRLjGNgK8,10730
20
- upgini/autofe/feature.py,sha256=Xto7FHH1JG-5QvkfTPNWKtV9GAzPviTNPKFZOUN7RQA,14757
20
+ upgini/autofe/feature.py,sha256=xgu6bVIlUJ5PCUgoXQRNcGkcMOhj-_BdDRmkB_qRFS4,14766
21
21
  upgini/autofe/groupby.py,sha256=IYmQV9uoCdRcpkeWZj_kI3ObzoNCNx3ff3h8sTL01tk,3603
22
- upgini/autofe/operator.py,sha256=KKLFixtEFq-qP6WVks19F0AY2iOnB8_g8uYpbrC8USM,4894
22
+ upgini/autofe/operator.py,sha256=EOffJw6vKXpEh5yymqb1RFNJPxGxmnHdFRo9dB5SCFo,4969
23
23
  upgini/autofe/unary.py,sha256=yVgPvtfnPSOhrii0YgezddmgWPwyOBCR0JutaIkdTTc,4658
24
24
  upgini/autofe/vector.py,sha256=l0KdKg-txlZxDSE4hPPfCtfGQofYbl7oaABPr830sPI,667
25
25
  upgini/autofe/timeseries/__init__.py,sha256=PGwwDAMwvkXl3el12tXVEmZUgDUvlmIPlXtROm6bD18,738
26
26
  upgini/autofe/timeseries/base.py,sha256=T9Ec8LKJbiwTUGGsd_xhM0U0NUJblqmKchkzUI1sK88,3755
27
- upgini/autofe/timeseries/cross.py,sha256=8ggDhsvwdxHkrWKRPl2fcFt7wamTYhkVzQcOWvIIyvU,4612
27
+ upgini/autofe/timeseries/cross.py,sha256=u0VpTyul_vrOgPD2yptq0jElxDULwH4YPCVBvWnl4WM,4919
28
28
  upgini/autofe/timeseries/delta.py,sha256=h0YhmI1TlPJnjwFpN_GQxLb6r59DQuucnG5tQAXSgjU,3520
29
29
  upgini/autofe/timeseries/lag.py,sha256=LfQtg484vuqM0mgY4Wft1swHX_Srq7OKKgZswCXoiXI,1882
30
30
  upgini/autofe/timeseries/roll.py,sha256=bNFMDszSYTWvB7EyhHbRY1DJqzSURvHlPAcBebt0y0Y,2878
@@ -70,7 +70,7 @@ upgini/utils/target_utils.py,sha256=b1GzO8_gMcwXSZ2v98CY50MJJBzKbWHId_BJGybXfkM,
70
70
  upgini/utils/track_info.py,sha256=G5Lu1xxakg2_TQjKZk4b5SvrHsATTXNVV3NbvWtT8k8,5663
71
71
  upgini/utils/ts_utils.py,sha256=26vhC0pN7vLXK6R09EEkMK3Lwb9IVPH7LRdqFIQ3kPs,1383
72
72
  upgini/utils/warning_counter.py,sha256=-GRY8EUggEBKODPSuXAkHn9KnEQwAORC0mmz_tim-PM,254
73
- upgini-1.2.65a3818.dev5.dist-info/METADATA,sha256=ThM2VKSF3JJw-jQz1wSWOQh81T7FsB4FvnjB5r9bcKk,49123
74
- upgini-1.2.65a3818.dev5.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
75
- upgini-1.2.65a3818.dev5.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
76
- upgini-1.2.65a3818.dev5.dist-info/RECORD,,
73
+ upgini-1.2.65a3818.dev6.dist-info/METADATA,sha256=4YxJ7EhfeMqfyIoiS0bBmxG-sWIF5ItjlIGLFgrugTA,49123
74
+ upgini-1.2.65a3818.dev6.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
75
+ upgini-1.2.65a3818.dev6.dist-info/licenses/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
76
+ upgini-1.2.65a3818.dev6.dist-info/RECORD,,
File without changes