wizata-dsapi 1.3.33__py3-none-any.whl → 1.3.34__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
@@ -35,6 +35,9 @@ class ModelIdentifierInfo:
35
35
  class ModelFile:
36
36
  """
37
37
  define a model file.
38
+
39
+ :ivar path str: file name relative path e.g. trained_model.pkl
40
+ :ivar content bytes[]: array of content bytes
38
41
  """
39
42
 
40
43
  def __init__(self,
@@ -43,13 +46,15 @@ class ModelFile:
43
46
  name: str = None,
44
47
  extension: str = None,
45
48
  last_modified: datetime = None,
46
- size: int = None):
49
+ size: int = None,
50
+ content = None):
47
51
  self.full_path = full_path
48
52
  self.path = path
49
53
  self.name = name
50
54
  self.extension = extension
51
55
  self.last_modified = last_modified
52
56
  self.size = size
57
+ self.content = content
53
58
 
54
59
  def to_json(self):
55
60
  """
@@ -94,7 +99,7 @@ class ModelInfo:
94
99
  define a pointer to a machine learning model.
95
100
 
96
101
  :ivar model_type str: mlflow model flavour
97
- :ivar files list: list of file paths of model content.
102
+ :ivar files list: list of ModelFile of model content.
98
103
  """
99
104
 
100
105
  def __init__(self,
@@ -105,7 +110,10 @@ class ModelInfo:
105
110
  model_type: str = None,
106
111
  file_format: str = 'pkl',
107
112
  source: str = 'wizata',
108
- property_name: str = None
113
+ property_name: str = None,
114
+ trained_model = None,
115
+ scaler = None,
116
+ files = None
109
117
  ):
110
118
  # information identifying a model
111
119
  self.key = key
@@ -113,14 +121,22 @@ class ModelInfo:
113
121
  self.property_value = property_value
114
122
  self.alias = alias
115
123
  self.file_format = file_format
124
+ if self.file_format not in ["pt", "pkl"]:
125
+ raise ValueError("file_format must be 'pt' or 'pkl'")
116
126
  self.source = source
117
127
  self.model_type = model_type
118
- self.files = []
128
+ if files is None:
129
+ self.files = []
130
+ else:
131
+ self.files = files
132
+ for file in files:
133
+ if not isinstance(file, ModelFile):
134
+ raise TypeError("file is not a ModelFile with files")
119
135
  self.is_active = False
120
136
 
121
137
  # files attached to model when loaded
122
- self.trained_model = None
123
- self.scaler = None
138
+ self.trained_model = trained_model
139
+ self.scaler = scaler
124
140
 
125
141
  # temporary properties during model generation not generally stored
126
142
  self.property_name = property_name
wizata_dsapi/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "1.3.33"
1
+ __version__ = "1.3.34"
@@ -0,0 +1,84 @@
1
+ Metadata-Version: 2.1
2
+ Name: wizata-dsapi
3
+ Version: 1.3.34
4
+ Summary: Wizata Data Science Toolkit
5
+ Author: Wizata S.A.
6
+ Author-email: info@wizata.com
7
+ License-File: LICENSE.txt
8
+ Requires-Dist: pandas (==1.5.3) ; python_version < "3.11"
9
+ Requires-Dist: protobuf (==3.20.3) ; python_version < "3.11"
10
+ Requires-Dist: requests (==2.28.2) ; python_version < "3.11"
11
+ Requires-Dist: setuptools (==67.6.0) ; python_version < "3.11"
12
+ Requires-Dist: numpy (==1.26.4) ; python_version < "3.12"
13
+ Requires-Dist: dill (==0.3.6) ; python_version < "3.12"
14
+ Requires-Dist: msal (==1.30.0) ; python_version < "3.12"
15
+ Requires-Dist: joblib (==1.5.2) ; python_version < "3.12"
16
+ Requires-Dist: plotly (==5.13.1) ; python_version < "3.12"
17
+ Requires-Dist: requests (>=2.32.5) ; python_version >= "3.11"
18
+ Requires-Dist: setuptools (>=80.9.0) ; python_version >= "3.11"
19
+ Requires-Dist: pandas (==2.2.3) ; python_version >= "3.11" and python_version < "3.12"
20
+ Requires-Dist: protobuf (==5.29.5) ; python_version >= "3.11" and python_version < "3.12"
21
+ Requires-Dist: pandas (>=2.3.3) ; python_version >= "3.12"
22
+ Requires-Dist: numpy (>=2.3.3) ; python_version >= "3.12"
23
+ Requires-Dist: dill (==0.4.0) ; python_version >= "3.12"
24
+ Requires-Dist: protobuf (>=5.29.5) ; python_version >= "3.12"
25
+ Requires-Dist: msal (>=1.34.0) ; python_version >= "3.12"
26
+ Requires-Dist: joblib (>=1.2.0) ; python_version >= "3.12"
27
+ Requires-Dist: plotly (>=6.3.1) ; python_version >= "3.12"
28
+ Provides-Extra: all
29
+ Requires-Dist: adtk (==0.6.2) ; extra == 'all'
30
+ Requires-Dist: tensorflow (>=2.15.0) ; ((sys_platform != "darwin" or platform_machine != "arm64") and python_version < "3.12") and extra == 'all'
31
+ Requires-Dist: pandas (==1.5.3) ; (python_version < "3.11") and extra == 'all'
32
+ Requires-Dist: protobuf (==3.20.3) ; (python_version < "3.11") and extra == 'all'
33
+ Requires-Dist: requests (==2.28.2) ; (python_version < "3.11") and extra == 'all'
34
+ Requires-Dist: setuptools (==67.6.0) ; (python_version < "3.11") and extra == 'all'
35
+ Requires-Dist: matplotlib (==3.7.1) ; (python_version < "3.11") and extra == 'all'
36
+ Requires-Dist: numpy (==1.26.4) ; (python_version < "3.12") and extra == 'all'
37
+ Requires-Dist: dill (==0.3.6) ; (python_version < "3.12") and extra == 'all'
38
+ Requires-Dist: msal (==1.30.0) ; (python_version < "3.12") and extra == 'all'
39
+ Requires-Dist: joblib (==1.5.2) ; (python_version < "3.12") and extra == 'all'
40
+ Requires-Dist: plotly (==5.13.1) ; (python_version < "3.12") and extra == 'all'
41
+ Requires-Dist: keras (==2.15.0) ; (python_version < "3.12") and extra == 'all'
42
+ Requires-Dist: tensorflow-probability (==0.15.0) ; (python_version < "3.12") and extra == 'all'
43
+ Requires-Dist: scikit-learn (==1.2.2) ; (python_version < "3.12") and extra == 'all'
44
+ Requires-Dist: scipy (==1.10.1) ; (python_version < "3.12") and extra == 'all'
45
+ Requires-Dist: xgboost (==1.7.4) ; (python_version < "3.12") and extra == 'all'
46
+ Requires-Dist: u8darts (==0.25.0) ; (python_version < "3.12") and extra == 'all'
47
+ Requires-Dist: optuna (==3.3.0) ; (python_version < "3.12") and extra == 'all'
48
+ Requires-Dist: explainerdashboard (==0.4.2.1) ; (python_version < "3.12") and extra == 'all'
49
+ Requires-Dist: ipywidgets (==8.0.4) ; (python_version < "3.12") and extra == 'all'
50
+ Requires-Dist: kaleido (==0.2.1) ; (python_version < "3.12") and extra == 'all'
51
+ Requires-Dist: pytest (==7.2.2) ; (python_version < "3.12") and extra == 'all'
52
+ Requires-Dist: pytest-cov (==4.0.0) ; (python_version < "3.12") and extra == 'all'
53
+ Requires-Dist: shapely (==2.0.1) ; (python_version < "3.12") and extra == 'all'
54
+ Requires-Dist: pyodbc (==4.0.35) ; (python_version < "3.12") and extra == 'all'
55
+ Requires-Dist: requests (>=2.32.5) ; (python_version >= "3.11") and extra == 'all'
56
+ Requires-Dist: setuptools (>=80.9.0) ; (python_version >= "3.11") and extra == 'all'
57
+ Requires-Dist: matplotlib (>=3.10.6) ; (python_version >= "3.11") and extra == 'all'
58
+ Requires-Dist: pandas (==2.2.3) ; (python_version >= "3.11" and python_version < "3.12") and extra == 'all'
59
+ Requires-Dist: protobuf (==5.29.5) ; (python_version >= "3.11" and python_version < "3.12") and extra == 'all'
60
+ Requires-Dist: torch (==2.7.1) ; (python_version >= "3.11" and python_version < "3.12") and extra == 'all'
61
+ Requires-Dist: pandas (>=2.3.3) ; (python_version >= "3.12") and extra == 'all'
62
+ Requires-Dist: numpy (>=2.3.3) ; (python_version >= "3.12") and extra == 'all'
63
+ Requires-Dist: dill (==0.4.0) ; (python_version >= "3.12") and extra == 'all'
64
+ Requires-Dist: protobuf (>=5.29.5) ; (python_version >= "3.12") and extra == 'all'
65
+ Requires-Dist: msal (>=1.34.0) ; (python_version >= "3.12") and extra == 'all'
66
+ Requires-Dist: joblib (>=1.2.0) ; (python_version >= "3.12") and extra == 'all'
67
+ Requires-Dist: plotly (>=6.3.1) ; (python_version >= "3.12") and extra == 'all'
68
+ Requires-Dist: tensorflow (>=2.20.0) ; (python_version >= "3.12") and extra == 'all'
69
+ Requires-Dist: keras (>=3.11.3) ; (python_version >= "3.12") and extra == 'all'
70
+ Requires-Dist: tensorflow-probability (>=0.25.0) ; (python_version >= "3.12") and extra == 'all'
71
+ Requires-Dist: scikit-learn (>=1.7.2) ; (python_version >= "3.12") and extra == 'all'
72
+ Requires-Dist: scipy (>=1.16.2) ; (python_version >= "3.12") and extra == 'all'
73
+ Requires-Dist: xgboost (>=3.0.5) ; (python_version >= "3.12") and extra == 'all'
74
+ Requires-Dist: u8darts (>=0.38.0) ; (python_version >= "3.12") and extra == 'all'
75
+ Requires-Dist: optuna (>=4.5.0) ; (python_version >= "3.12") and extra == 'all'
76
+ Requires-Dist: ipywidgets (>=8.1.7) ; (python_version >= "3.12") and extra == 'all'
77
+ Requires-Dist: kaleido (>=1.1.0) ; (python_version >= "3.12") and extra == 'all'
78
+ Requires-Dist: pytest (>=8.4.2) ; (python_version >= "3.12") and extra == 'all'
79
+ Requires-Dist: pytest-cov (>=7.0.0) ; (python_version >= "3.12") and extra == 'all'
80
+ Requires-Dist: shapely (>=2.1.2) ; (python_version >= "3.12") and extra == 'all'
81
+ Requires-Dist: pyodbc (>=5.2.0) ; (python_version >= "3.12") and extra == 'all'
82
+ Requires-Dist: torch (>=2.8.0) ; (python_version >= "3.12") and extra == 'all'
83
+ Requires-Dist: tensorflow-macos (>=2.15.0) ; (sys_platform == "darwin" and platform_machine == "arm64" and python_version < "3.12") and extra == 'all'
84
+
@@ -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=iIAqLVvzZS5lHrZ2UH68NvZZbOYX_zdqORAukOc4pVI,21510
19
+ wizata_dsapi/mlmodel.py,sha256=8oRq6hoVAwN44490s7NrvlmzHVg6-8WO-Z60LrYARmU,22152
20
20
  wizata_dsapi/model_toolkit.py,sha256=UNyw5CFSgZeXydQFsiDIRTjoMeqIsdyIIuiwumLW5bA,1574
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=mlgNKimyRDi_WrDBCrvzFuEZsuPR-NBnjRrGSYC_1v4,23
34
+ wizata_dsapi/version.py,sha256=ZFzPwcVApl0WXETY3ii4RpYWOC9l9iNTKU07I0HChdg,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=h8iSz7IGbP-Zq9rbqMdq-hTrt16laD1JeaRWPzaLaoo,77695
@@ -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.33.dist-info/licenses/LICENSE.txt,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
46
- wizata_dsapi-1.3.33.dist-info/METADATA,sha256=hSJF7gKKsGXz6hG7bcJWnreMtjjuYmBdcYA7X8nOyFY,5844
47
- wizata_dsapi-1.3.33.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
48
- wizata_dsapi-1.3.33.dist-info/top_level.txt,sha256=-OeTJbEnh5DuWyTOHtvw0Dw3LRg3G27TNS6W4ZtfwPs,13
49
- wizata_dsapi-1.3.33.dist-info/RECORD,,
45
+ wizata_dsapi-1.3.34.dist-info/LICENSE.txt,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
46
+ wizata_dsapi-1.3.34.dist-info/METADATA,sha256=f3XiXVKkbEnDaQ74Mgh0-JmqIpLDPGMBUQcyeHEHSCI,6119
47
+ wizata_dsapi-1.3.34.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
48
+ wizata_dsapi-1.3.34.dist-info/top_level.txt,sha256=-OeTJbEnh5DuWyTOHtvw0Dw3LRg3G27TNS6W4ZtfwPs,13
49
+ wizata_dsapi-1.3.34.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: bdist_wheel (0.38.4)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,89 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: wizata_dsapi
3
- Version: 1.3.33
4
- Summary: Wizata Data Science Toolkit
5
- Author: Wizata S.A.
6
- Author-email: info@wizata.com
7
- License-File: LICENSE.txt
8
- Requires-Dist: pandas==1.5.3; python_version < "3.11"
9
- Requires-Dist: pandas==2.2.3; python_version >= "3.11" and python_version < "3.12"
10
- Requires-Dist: pandas>=2.3.3; python_version >= "3.12"
11
- Requires-Dist: numpy==1.26.4; python_version < "3.12"
12
- Requires-Dist: numpy>=2.3.3; python_version >= "3.12"
13
- Requires-Dist: dill==0.3.6; python_version < "3.12"
14
- Requires-Dist: dill==0.4.0; python_version >= "3.12"
15
- Requires-Dist: protobuf==3.20.3; python_version < "3.11"
16
- Requires-Dist: protobuf==5.29.5; python_version >= "3.11" and python_version < "3.12"
17
- Requires-Dist: protobuf>=5.29.5; python_version >= "3.12"
18
- Requires-Dist: msal==1.30.0; python_version < "3.12"
19
- Requires-Dist: msal>=1.34.0; python_version >= "3.12"
20
- Requires-Dist: joblib==1.5.2; python_version < "3.12"
21
- Requires-Dist: joblib>=1.2.0; python_version >= "3.12"
22
- Requires-Dist: requests==2.28.2; python_version < "3.11"
23
- Requires-Dist: requests>=2.32.5; python_version >= "3.11"
24
- Requires-Dist: setuptools==67.6.0; python_version < "3.11"
25
- Requires-Dist: setuptools>=80.9.0; python_version >= "3.11"
26
- Requires-Dist: plotly==5.13.1; python_version < "3.12"
27
- Requires-Dist: plotly>=6.3.1; python_version >= "3.12"
28
- Provides-Extra: all
29
- Requires-Dist: pandas==1.5.3; python_version < "3.11" and extra == "all"
30
- Requires-Dist: pandas==2.2.3; (python_version >= "3.11" and python_version < "3.12") and extra == "all"
31
- Requires-Dist: pandas>=2.3.3; python_version >= "3.12" and extra == "all"
32
- Requires-Dist: numpy==1.26.4; python_version < "3.12" and extra == "all"
33
- Requires-Dist: numpy>=2.3.3; python_version >= "3.12" and extra == "all"
34
- Requires-Dist: dill==0.3.6; python_version < "3.12" and extra == "all"
35
- Requires-Dist: dill==0.4.0; python_version >= "3.12" and extra == "all"
36
- Requires-Dist: protobuf==3.20.3; python_version < "3.11" and extra == "all"
37
- Requires-Dist: protobuf==5.29.5; (python_version >= "3.11" and python_version < "3.12") and extra == "all"
38
- Requires-Dist: protobuf>=5.29.5; python_version >= "3.12" and extra == "all"
39
- Requires-Dist: msal==1.30.0; python_version < "3.12" and extra == "all"
40
- Requires-Dist: msal>=1.34.0; python_version >= "3.12" and extra == "all"
41
- Requires-Dist: joblib==1.5.2; python_version < "3.12" and extra == "all"
42
- Requires-Dist: joblib>=1.2.0; python_version >= "3.12" and extra == "all"
43
- Requires-Dist: requests==2.28.2; python_version < "3.11" and extra == "all"
44
- Requires-Dist: requests>=2.32.5; python_version >= "3.11" and extra == "all"
45
- Requires-Dist: setuptools==67.6.0; python_version < "3.11" and extra == "all"
46
- Requires-Dist: setuptools>=80.9.0; python_version >= "3.11" and extra == "all"
47
- Requires-Dist: plotly==5.13.1; python_version < "3.12" and extra == "all"
48
- Requires-Dist: plotly>=6.3.1; python_version >= "3.12" and extra == "all"
49
- Requires-Dist: matplotlib==3.7.1; python_version < "3.11" and extra == "all"
50
- Requires-Dist: matplotlib>=3.10.6; python_version >= "3.11" and extra == "all"
51
- Requires-Dist: tensorflow>=2.15.0; ((sys_platform != "darwin" or platform_machine != "arm64") and python_version < "3.12") and extra == "all"
52
- Requires-Dist: tensorflow-macos>=2.15.0; (sys_platform == "darwin" and platform_machine == "arm64" and python_version < "3.12") and extra == "all"
53
- Requires-Dist: tensorflow>=2.20.0; python_version >= "3.12" and extra == "all"
54
- Requires-Dist: keras==2.15.0; python_version < "3.12" and extra == "all"
55
- Requires-Dist: keras>=3.11.3; python_version >= "3.12" and extra == "all"
56
- Requires-Dist: tensorflow_probability==0.15.0; python_version < "3.12" and extra == "all"
57
- Requires-Dist: tensorflow_probability>=0.25.0; python_version >= "3.12" and extra == "all"
58
- Requires-Dist: scikit-learn==1.2.2; python_version < "3.12" and extra == "all"
59
- Requires-Dist: scikit-learn>=1.7.2; python_version >= "3.12" and extra == "all"
60
- Requires-Dist: adtk==0.6.2; extra == "all"
61
- Requires-Dist: scipy==1.10.1; python_version < "3.12" and extra == "all"
62
- Requires-Dist: scipy>=1.16.2; python_version >= "3.12" and extra == "all"
63
- Requires-Dist: xgboost==1.7.4; python_version < "3.12" and extra == "all"
64
- Requires-Dist: xgboost>=3.0.5; python_version >= "3.12" and extra == "all"
65
- Requires-Dist: u8darts==0.25.0; python_version < "3.12" and extra == "all"
66
- Requires-Dist: u8darts>=0.38.0; python_version >= "3.12" and extra == "all"
67
- Requires-Dist: optuna==3.3.0; python_version < "3.12" and extra == "all"
68
- Requires-Dist: optuna>=4.5.0; python_version >= "3.12" and extra == "all"
69
- Requires-Dist: explainerdashboard==0.4.2.1; python_version < "3.12" and extra == "all"
70
- Requires-Dist: ipywidgets==8.0.4; python_version < "3.12" and extra == "all"
71
- Requires-Dist: ipywidgets>=8.1.7; python_version >= "3.12" and extra == "all"
72
- Requires-Dist: kaleido==0.2.1; python_version < "3.12" and extra == "all"
73
- Requires-Dist: kaleido>=1.1.0; python_version >= "3.12" and extra == "all"
74
- Requires-Dist: pytest==7.2.2; python_version < "3.12" and extra == "all"
75
- Requires-Dist: pytest>=8.4.2; python_version >= "3.12" and extra == "all"
76
- Requires-Dist: pytest-cov==4.0.0; python_version < "3.12" and extra == "all"
77
- Requires-Dist: pytest-cov>=7.0.0; python_version >= "3.12" and extra == "all"
78
- Requires-Dist: shapely==2.0.1; python_version < "3.12" and extra == "all"
79
- Requires-Dist: shapely>=2.1.2; python_version >= "3.12" and extra == "all"
80
- Requires-Dist: pyodbc==4.0.35; python_version < "3.12" and extra == "all"
81
- Requires-Dist: pyodbc>=5.2.0; python_version >= "3.12" and extra == "all"
82
- Requires-Dist: torch==2.7.1; (python_version >= "3.11" and python_version < "3.12") and extra == "all"
83
- Requires-Dist: torch>=2.8.0; python_version >= "3.12" and extra == "all"
84
- Dynamic: author
85
- Dynamic: author-email
86
- Dynamic: license-file
87
- Dynamic: provides-extra
88
- Dynamic: requires-dist
89
- Dynamic: summary