wizata-dsapi 1.3.10__py3-none-any.whl → 1.3.12__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.
wizata_dsapi/mlmodel.py CHANGED
@@ -24,6 +24,7 @@ class MLModelConfig(ApiDto):
24
24
  :ivar str model_key: key of the model to store (or use story property if dynamic).
25
25
  :ivar str model_type: reserved for 'mlflow' defines model flavor such as 'sklearn' or 'pyfunc'.
26
26
  :ivar str model_alias: reserved for 'mlflow' set the alias to target and use inside a pipeline.
27
+ :ivar str model_format: type of model (by default 'pkl') accept also 'pt' for PyTorch model using tensors (none = 'pkl')
27
28
  :ivar dict properties_mapping: dict to map properties expected by the script with the properties from the context.
28
29
  :ivar str property_name: define which property is looked for when using 'by_property'.
29
30
  :ivar str source: define name of model storage to use 'wizata'.
@@ -40,7 +41,6 @@ class MLModelConfig(ApiDto):
40
41
  train_script=None,
41
42
  train_test_split_pct: float = 1.0,
42
43
  train_test_split_type: str = "ignore",
43
- format: str = 'pkl',
44
44
  function: str = "predict",
45
45
  properties_mapping=None,
46
46
  target_feat=None,
@@ -51,6 +51,7 @@ class MLModelConfig(ApiDto):
51
51
  model_key: str = None,
52
52
  model_type: str = None,
53
53
  model_alias: str = None,
54
+ model_format: str = 'pkl',
54
55
  by_twin: bool = False,
55
56
  by_property: bool = False,
56
57
  property_name: str = None,
@@ -76,7 +77,7 @@ class MLModelConfig(ApiDto):
76
77
  self.by_twin = by_twin
77
78
  self.by_property = by_property
78
79
  self.property_name = property_name
79
- self.format = format
80
+ self.model_format = model_format
80
81
 
81
82
  # source
82
83
  self.source = source
@@ -159,8 +160,8 @@ class MLModelConfig(ApiDto):
159
160
  self.model_type = obj["model_type"]
160
161
  if "model_alias" in obj.keys() and obj["model_alias"] is not None:
161
162
  self.model_alias = obj["model_alias"]
162
- if "format" in obj.keys() and obj["format"] is not None:
163
- self.format = obj["format"]
163
+ if "model_format" in obj.keys() and obj["model_format"] is not None:
164
+ self.model_format = obj["model_format"]
164
165
 
165
166
  def to_json(self, target: str = None):
166
167
  obj = {
@@ -204,8 +205,8 @@ class MLModelConfig(ApiDto):
204
205
  obj["by_property"] = str(self.by_property)
205
206
  if self.property_name is not None:
206
207
  obj["property_name"] = self.property_name
207
- if self.format is not None:
208
- obj["format"] = self.format
208
+ if self.model_format is not None:
209
+ obj["model_format"] = self.model_format
209
210
 
210
211
  return obj
211
212
 
wizata_dsapi/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "1.3.10"
1
+ __version__ = "1.3.12"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wizata_dsapi
3
- Version: 1.3.10
3
+ Version: 1.3.12
4
4
  Summary: Wizata Data Science Toolkit
5
5
  Author: Wizata S.A.
6
6
  Author-email: info@wizata.com
@@ -12,8 +12,9 @@ Requires-Dist: numpy==1.26.4; python_version < "3.12"
12
12
  Requires-Dist: numpy>=2.3.3; python_version >= "3.12"
13
13
  Requires-Dist: dill==0.3.6; python_version < "3.12"
14
14
  Requires-Dist: dill==0.4.0; python_version >= "3.12"
15
- Requires-Dist: protobuf>=3.20.3
16
- Requires-Dist: msal==1.24.0; python_version < "3.12"
15
+ Requires-Dist: protobuf==5.25.9; python_version < "3.12"
16
+ Requires-Dist: protobuf>=5.25.9; python_version >= "3.12"
17
+ Requires-Dist: msal==1.30.0; python_version < "3.12"
17
18
  Requires-Dist: msal>=1.34.0; python_version >= "3.12"
18
19
  Requires-Dist: joblib==1.5.2; python_version < "3.12"
19
20
  Requires-Dist: joblib>=1.2.0; python_version >= "3.12"
@@ -31,8 +32,9 @@ Requires-Dist: numpy==1.26.4; python_version < "3.12" and extra == "all"
31
32
  Requires-Dist: numpy>=2.3.3; python_version >= "3.12" and extra == "all"
32
33
  Requires-Dist: dill==0.3.6; python_version < "3.12" and extra == "all"
33
34
  Requires-Dist: dill==0.4.0; python_version >= "3.12" and extra == "all"
34
- Requires-Dist: protobuf>=3.20.3; extra == "all"
35
- Requires-Dist: msal==1.24.0; python_version < "3.12" and extra == "all"
35
+ Requires-Dist: protobuf==5.25.9; python_version < "3.12" and extra == "all"
36
+ Requires-Dist: protobuf>=5.25.9; python_version >= "3.12" and extra == "all"
37
+ Requires-Dist: msal==1.30.0; python_version < "3.12" and extra == "all"
36
38
  Requires-Dist: msal>=1.34.0; python_version >= "3.12" and extra == "all"
37
39
  Requires-Dist: joblib==1.5.2; python_version < "3.12" and extra == "all"
38
40
  Requires-Dist: joblib>=1.2.0; python_version >= "3.12" and extra == "all"
@@ -16,7 +16,7 @@ wizata_dsapi/experiment.py,sha256=QYQ1CJ-MTWsXq08xYbm5sAp95dRxbPOmGDgaAOoBMDQ,46
16
16
  wizata_dsapi/group_system.py,sha256=6rUKe0_J3YWACysyBlzuw_TEpKNXgLOMxhpWsNxOzwY,1708
17
17
  wizata_dsapi/ilogger.py,sha256=iYnID-Z-qrYhie26C43404aIuU4_tHSKXbDeQIdo82Q,807
18
18
  wizata_dsapi/insight.py,sha256=ABFZ04DqYxxzqAEfU1tzlTZqqrigM-zN-8Lbetko3g0,6468
19
- wizata_dsapi/mlmodel.py,sha256=1vd5dHob3LtrjbWjpGr90GyPEcdBKxUQRxExX1OJdWc,14923
19
+ wizata_dsapi/mlmodel.py,sha256=VwjiG6nmljA2MOlAL04jxMBgR3FmNa6NIQWNGDlTmEQ,15108
20
20
  wizata_dsapi/model_toolkit.py,sha256=a76ckSuetSKDjEkOl7o49g9oaItdw9iOaPt0JcstmhU,1551
21
21
  wizata_dsapi/paged_query_result.py,sha256=0Iyt2Kd4tvrfthhT-tk9EmSERsbJTaPNON2euHcBn6k,1150
22
22
  wizata_dsapi/pipeline.py,sha256=WDJeOxPZJiYW1qwTNZUm3jom2epIxqrSoiUwcrTF9EE,31300
@@ -31,7 +31,7 @@ wizata_dsapi/template.py,sha256=wtCRKKk3PchH4RrNgNYlEF_9C6bzZwKIeLyEvgv6Fdo,1370
31
31
  wizata_dsapi/trigger.py,sha256=w3BZYP-L3SUwvaT0oCTanh_Ewn57peZvlt7vxzHv9J8,5129
32
32
  wizata_dsapi/twin.py,sha256=S0DUzQf1smZXZTdXpXZPtkZYCfKIhw53EecCnsl9i4Q,11017
33
33
  wizata_dsapi/twinregistration.py,sha256=Mi6-YuwroiEXc0c1hgrOaphh4hNVoHupxOnXedVtJtE,13377
34
- wizata_dsapi/version.py,sha256=4o4BxiWDvKULo_NByGymiLj9KXGht1PsOBGUMmasvxM,23
34
+ wizata_dsapi/version.py,sha256=2Rgd7p7gALBiXufv4uSeaC9anR_muEfi4m5NMAgfMHI,23
35
35
  wizata_dsapi/wizard_function.py,sha256=RbM7W7Gf-6Rhp_1dU9DBYkHaciknGAGvuAndhAS_vyo,942
36
36
  wizata_dsapi/wizard_request.py,sha256=v6BaqKLKvTWmUSo0_gda9FabAQz5x_-GOH1Av50GzFo,3762
37
37
  wizata_dsapi/wizata_dsapi_client.py,sha256=kos_8j47CBXiy6y6b_H2yDUe3aWh76diEmWjCisYKkY,78662
@@ -42,8 +42,8 @@ wizata_dsapi/plots/__init__.py,sha256=qgnSFqrjOPur-807M8uh5awIfjM1ZHXUXcAqHc-r2l
42
42
  wizata_dsapi/plots/common.py,sha256=jdPsJqLHBwSKc6dX83BSGPqSRxzIVNHSYO5yI_8sjGk,6568
43
43
  wizata_dsapi/scripts/__init__.py,sha256=hAxiETSQf0qOHde1si1tEAJU48seqEgHrchCzS2-LvQ,80
44
44
  wizata_dsapi/scripts/common.py,sha256=efwq-Rd0lvYljIs3gSFz9izogBD7asOU2cTK-IvHTkM,4244
45
- wizata_dsapi-1.3.10.dist-info/licenses/LICENSE.txt,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
46
- wizata_dsapi-1.3.10.dist-info/METADATA,sha256=-7gm_5NICxt9GbUSCByi43lCgE8ppfns4ESqxK7vweU,5463
47
- wizata_dsapi-1.3.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
48
- wizata_dsapi-1.3.10.dist-info/top_level.txt,sha256=-OeTJbEnh5DuWyTOHtvw0Dw3LRg3G27TNS6W4ZtfwPs,13
49
- wizata_dsapi-1.3.10.dist-info/RECORD,,
45
+ wizata_dsapi-1.3.12.dist-info/licenses/LICENSE.txt,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
46
+ wizata_dsapi-1.3.12.dist-info/METADATA,sha256=zgYHssezx3tkbD3--DWp9CbOndPXQn28moPsBwz-2rs,5651
47
+ wizata_dsapi-1.3.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
48
+ wizata_dsapi-1.3.12.dist-info/top_level.txt,sha256=-OeTJbEnh5DuWyTOHtvw0Dw3LRg3G27TNS6W4ZtfwPs,13
49
+ wizata_dsapi-1.3.12.dist-info/RECORD,,