arthur-client 1.1.0__py3-none-any.whl → 1.2.0__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.
- arthur/client/rest/admin/models.py +1 -1
- arthur/client/rest/alerts/models.py +1 -1
- arthur/client/rest/bench/models.py +1 -1
- arthur/client/rest/common/models.py +1 -1
- arthur/client/rest/enrichments/models.py +1 -1
- arthur/client/rest/inferences/client.py +22 -1
- arthur/client/rest/inferences/models.py +1 -1
- arthur/client/rest/insights/models.py +1 -1
- arthur/client/rest/metrics/models.py +1 -1
- arthur/client/rest/model_groups/client.py +1 -1
- arthur/client/rest/model_groups/models.py +1 -1
- arthur/client/rest/models/models.py +1 -1
- arthur/client/rest/query/client.py +1 -1
- arthur/client/rest/query/models.py +1 -1
- arthur/client/rest/users/models.py +1 -1
- arthur/client/version.py +1 -1
- {arthur_client-1.1.0.dist-info → arthur_client-1.2.0.dist-info}/METADATA +1 -1
- {arthur_client-1.1.0.dist-info → arthur_client-1.2.0.dist-info}/RECORD +21 -21
- {arthur_client-1.1.0.dist-info → arthur_client-1.2.0.dist-info}/LICENSE +0 -0
- {arthur_client-1.1.0.dist-info → arthur_client-1.2.0.dist-info}/WHEEL +0 -0
- {arthur_client-1.1.0.dist-info → arthur_client-1.2.0.dist-info}/top_level.txt +0 -0
@@ -59,12 +59,14 @@ class ArthurInferencesClient:
|
|
59
59
|
)
|
60
60
|
return InferencesResponse(**parsed_resp)
|
61
61
|
|
62
|
-
def
|
62
|
+
def update_inferences(
|
63
63
|
self, model_id: str, json_body: List["PartnerIdInferenceGroundTruth"]
|
64
64
|
) -> InferencesResponse:
|
65
65
|
"""
|
66
66
|
Updates inferences with ground truth data
|
67
67
|
|
68
|
+
This endpoint behaves similarly to the PATCH /v3/models/{model_id}/ground_truth endpoint, but it requires inference writing permissions.
|
69
|
+
|
68
70
|
:param model_id:
|
69
71
|
:param json_body: List of inference ground truth data
|
70
72
|
"""
|
@@ -76,6 +78,25 @@ class ArthurInferencesClient:
|
|
76
78
|
)
|
77
79
|
return InferencesResponse(**parsed_resp)
|
78
80
|
|
81
|
+
def update_inference_ground_truths(
|
82
|
+
self, model_id: str, json_body: List["PartnerIdInferenceGroundTruth"]
|
83
|
+
) -> InferencesResponse:
|
84
|
+
"""
|
85
|
+
Updates inferences with ground truth data
|
86
|
+
|
87
|
+
This endpoint behaves similarly to the PATCH /v3/models/{model_id}/inferences endpoint, but it requires ground truth writing permissions instead of inference writing permissions.
|
88
|
+
|
89
|
+
:param model_id:
|
90
|
+
:param json_body: List of inference ground truth data
|
91
|
+
"""
|
92
|
+
|
93
|
+
parsed_resp: Dict[str, Any] = self.http_client.patch( # type: ignore
|
94
|
+
f"/v3/models/{model_id}/ground_truth",
|
95
|
+
json=[x.dict(by_alias=True, exclude_none=True) for x in json_body],
|
96
|
+
validation_response_code=207,
|
97
|
+
)
|
98
|
+
return InferencesResponse(**parsed_resp)
|
99
|
+
|
79
100
|
def send_inference_file(
|
80
101
|
self, model_id: str, multipart_data: FileInferenceData
|
81
102
|
) -> ReferenceDataResponse:
|
@@ -6,13 +6,13 @@ from requests import Response
|
|
6
6
|
# import http client
|
7
7
|
from arthur.client.http.requests import HTTPClient
|
8
8
|
|
9
|
+
from arthur.client.rest.models.models import ModelExpand, ModelObject
|
9
10
|
from arthur.client.rest.model_groups.models import (
|
10
11
|
ModelGroupResponse,
|
11
12
|
ModelGroupUpdateRequest,
|
12
13
|
PaginatedModelGroupResponse,
|
13
14
|
PaginatedModelGroupVersionsResponse,
|
14
15
|
)
|
15
|
-
from arthur.client.rest.models.models import ModelExpand, ModelObject
|
16
16
|
|
17
17
|
|
18
18
|
PATH_PREFIX = "/api"
|
@@ -6,6 +6,7 @@ from requests import Response
|
|
6
6
|
# import http client
|
7
7
|
from arthur.client.http.requests import HTTPClient
|
8
8
|
|
9
|
+
from arthur.client.rest.common.models import DataDriftRequest, QueryRequest
|
9
10
|
from arthur.client.rest.query.models import (
|
10
11
|
DataDriftResponse,
|
11
12
|
DataDriftTableRequest,
|
@@ -13,7 +14,6 @@ from arthur.client.rest.query.models import (
|
|
13
14
|
DistributionsRequest,
|
14
15
|
QueryResult,
|
15
16
|
)
|
16
|
-
from arthur.client.rest.common.models import DataDriftRequest, QueryRequest
|
17
17
|
|
18
18
|
|
19
19
|
PATH_PREFIX = "/api"
|
arthur/client/version.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
__version__ = "1.
|
1
|
+
__version__ = "1.2.0"
|
2
2
|
api_spec_version = "3.0.0"
|
@@ -1,7 +1,7 @@
|
|
1
1
|
arthur/client/__init__.py,sha256=hLwS66smzK1qUEyhyvXqZ_2L47IKkM7fjVNj7L2d24k,57
|
2
2
|
arthur/client/helpers.py,sha256=toTAqb-r8SuvXXyy4ohef_2DOEyp8V7SidXL9W3gbxA,1457
|
3
3
|
arthur/client/types.py,sha256=GufCfBBWoTe9MiH2NVSELgh-kJOvuj1-SiPcW0LKqGI,234
|
4
|
-
arthur/client/version.py,sha256=
|
4
|
+
arthur/client/version.py,sha256=nMqL-plahGDDgHiM6rg7a9Yc4Rz4Y6UqHQGqRwgcCK4,49
|
5
5
|
arthur/client/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
6
|
arthur/client/auth/helpers.py,sha256=zIfbUh6JqyXGs6cq26xjY0M4nQfcU5YWUwLO_h0G534,4987
|
7
7
|
arthur/client/auth/refresh.py,sha256=Zn56iptWjnLGT0DIRsBSoRIBUPOB-7dLqVG-FZYW9yo,2681
|
@@ -13,46 +13,46 @@ arthur/client/rest/__init__.py,sha256=LA1HL5LlXNw2zck-rWpCKU1lgsgWJa_fKovE2SmgIJ
|
|
13
13
|
arthur/client/rest/client.py,sha256=Hg_YkiNHKF8rrGgRqxH4alTnVYcX13Vkj5PSMTqn3Pk,7003
|
14
14
|
arthur/client/rest/admin/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
|
15
15
|
arthur/client/rest/admin/client.py,sha256=lRLBkR8NiGQumqhJBFGsZM_eRIXyRFgljU6kJwPTwAU,10629
|
16
|
-
arthur/client/rest/admin/models.py,sha256=
|
16
|
+
arthur/client/rest/admin/models.py,sha256=TEQEzV6VSP3CH2ltJSKXFLxU150t8fpCGT0mH47BYqA,15398
|
17
17
|
arthur/client/rest/alerts/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
|
18
18
|
arthur/client/rest/alerts/client.py,sha256=-RAhKM05GUhw307b-f0ept4Fy6n3SwF3onXbAYCXLA8,20399
|
19
|
-
arthur/client/rest/alerts/models.py,sha256=
|
19
|
+
arthur/client/rest/alerts/models.py,sha256=71PEQbOAef8dImt52SMLYzEJFgffNYEPXg3loWIFLoA,19582
|
20
20
|
arthur/client/rest/bench/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
|
21
21
|
arthur/client/rest/bench/client.py,sha256=eRVemQiqYvXqntjKzyICdvrPgbzXD780LXDfHHQBYRs,8558
|
22
|
-
arthur/client/rest/bench/models.py,sha256=
|
22
|
+
arthur/client/rest/bench/models.py,sha256=NyLGFOenuE0hUWqLWgge9R1d61XQshfM8EthHFLSREU,5328
|
23
23
|
arthur/client/rest/common/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
|
24
24
|
arthur/client/rest/common/client.py,sha256=wd24QtCkGKvzbWVhKxwUYxZsoaN6YU-NheQIv6k6YHo,701
|
25
|
-
arthur/client/rest/common/models.py,sha256=
|
25
|
+
arthur/client/rest/common/models.py,sha256=YlY2fz8IOvM1nsziU5wEBW6q9ao1fLEE9nHBIKeiIQk,10006
|
26
26
|
arthur/client/rest/enrichments/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
|
27
27
|
arthur/client/rest/enrichments/client.py,sha256=U8LOVm_MXZMqmtoqx6ASEK2Nl-19CZbEyEQlPqpl4xI,12252
|
28
|
-
arthur/client/rest/enrichments/models.py,sha256=
|
28
|
+
arthur/client/rest/enrichments/models.py,sha256=_8hZIEMpkMlPm2PCyfWuXPKG4wLBcTC9_cfMTmgpcfQ,14382
|
29
29
|
arthur/client/rest/inferences/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
|
30
|
-
arthur/client/rest/inferences/client.py,sha256=
|
31
|
-
arthur/client/rest/inferences/models.py,sha256=
|
30
|
+
arthur/client/rest/inferences/client.py,sha256=r38R6SZmz3MEwSlev56DBuwaDccWsaXGZjZOP-Q8pSU,10013
|
31
|
+
arthur/client/rest/inferences/models.py,sha256=hfQVQatXQAAOyf3aRM-OuSdKCOeP0pJFStTp7iNkaJY,12571
|
32
32
|
arthur/client/rest/insights/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
|
33
33
|
arthur/client/rest/insights/client.py,sha256=8ok5oDzdBeytwMAjuSuyTI8xh_C72w1czo3mpxO7GVw,6364
|
34
|
-
arthur/client/rest/insights/models.py,sha256=
|
34
|
+
arthur/client/rest/insights/models.py,sha256=gtGYreJhJ2dMfkuze3KDmMf-8CsI0tOHWJD6jXDrtN0,4082
|
35
35
|
arthur/client/rest/metrics/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
|
36
36
|
arthur/client/rest/metrics/client.py,sha256=jjynBs2qi1b0x3wGwruKpDn9RJ_FuTZ3Y54kjh-eme0,9819
|
37
|
-
arthur/client/rest/metrics/models.py,sha256=
|
37
|
+
arthur/client/rest/metrics/models.py,sha256=uxJXE8mfLimogPQp1Fp6zciM49h3CPVa2iEdY5fIlJU,8267
|
38
38
|
arthur/client/rest/model_groups/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
|
39
|
-
arthur/client/rest/model_groups/client.py,sha256=
|
40
|
-
arthur/client/rest/model_groups/models.py,sha256=
|
39
|
+
arthur/client/rest/model_groups/client.py,sha256=2F50s9yXP1bX1ohDo216TYqMYXBXHxjtwJyWXESBxU8,5020
|
40
|
+
arthur/client/rest/model_groups/models.py,sha256=Z4-XtOVTjpLYGb_cnaSxSR2ceS7lrhowPYMZnKiyeA4,2151
|
41
41
|
arthur/client/rest/models/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
|
42
42
|
arthur/client/rest/models/client.py,sha256=LdztHARtz8WNvQqTKZr12nKno4qedf_1HljZh8i7lkA,19636
|
43
|
-
arthur/client/rest/models/models.py,sha256=
|
43
|
+
arthur/client/rest/models/models.py,sha256=fhrIiEfaT_iG8xWawX20LU4slqf6eMr-A4MYBrSaO2k,17733
|
44
44
|
arthur/client/rest/query/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
|
45
|
-
arthur/client/rest/query/client.py,sha256=
|
46
|
-
arthur/client/rest/query/models.py,sha256=
|
45
|
+
arthur/client/rest/query/client.py,sha256=A8ZpF34G9koOf3_H_mqyNiCRk-gC8p5Vp4x6AhEnIww,4125
|
46
|
+
arthur/client/rest/query/models.py,sha256=h4aiCBwXx9DdFsyQ5rRK9NMtLTdeBIAWqNfGC53GWaU,4223
|
47
47
|
arthur/client/rest/users/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
|
48
48
|
arthur/client/rest/users/client.py,sha256=LN0j0tJtVWs1lUtwTSKXX5gobMmgWvm8oYQIIAUsHjw,5130
|
49
|
-
arthur/client/rest/users/models.py,sha256=
|
49
|
+
arthur/client/rest/users/models.py,sha256=CKjmEpAmnq-ImKjeGzFdyt-lqd7yUeiH9Qna_u0MFoU,8943
|
50
50
|
arthur/common/__init__.py,sha256=ZPrXCVGLk4xZJQhuxYHKQYWUOpa3uHsqhf0T8qzgpjQ,68
|
51
51
|
arthur/common/constants.py,sha256=4_o_WDbtoOJ7kANCV28HdFbDJDO90k2TGULHxjqeSao,159
|
52
52
|
arthur/common/exceptions.py,sha256=m_lGhrb-EoMZCq6XjYPJLQEfAhYkE7h0Wuz0bNMtV4c,5230
|
53
53
|
arthur/common/log.py,sha256=oDB_teFV-pdDfcM3VGSSWYSOu6Iag_3RyzRDWBcIcOM,2851
|
54
|
-
arthur_client-1.
|
55
|
-
arthur_client-1.
|
56
|
-
arthur_client-1.
|
57
|
-
arthur_client-1.
|
58
|
-
arthur_client-1.
|
54
|
+
arthur_client-1.2.0.dist-info/LICENSE,sha256=a0qChOPgo0vduazUlCCpPkJ4A7nOtvBTbbvNh6qDmhw,1063
|
55
|
+
arthur_client-1.2.0.dist-info/METADATA,sha256=-UIkZJArrSVje4-zjxDE7WuHN7h-U556JgP-wsZOykI,1737
|
56
|
+
arthur_client-1.2.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
57
|
+
arthur_client-1.2.0.dist-info/top_level.txt,sha256=u8s5CFDcE7LoZePEhTOipwnPqeiXh4_hYXJp7vg5BLQ,7
|
58
|
+
arthur_client-1.2.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|