arthur-client 0.5.0__tar.gz → 0.6.0__tar.gz
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-0.5.0 → arthur-client-0.6.0}/PKG-INFO +1 -1
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/admin/models.py +1 -1
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/alerts/models.py +1 -1
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/bench/models.py +1 -1
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/common/models.py +1 -1
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/enrichments/client.py +3 -3
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/enrichments/models.py +12 -9
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/inferences/models.py +1 -1
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/insights/models.py +1 -1
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/metrics/models.py +1 -1
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/model_groups/models.py +1 -1
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/models/models.py +1 -1
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/query/models.py +1 -1
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/version.py +1 -1
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur_client.egg-info/PKG-INFO +1 -1
- {arthur-client-0.5.0 → arthur-client-0.6.0}/LICENSE +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/README.md +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/__init__.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/auth/__init__.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/auth/helpers.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/auth/refresh.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/helpers.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/http/__init__.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/http/helper.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/http/requests.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/http/validation.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/__init__.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/admin/__init__.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/admin/client.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/alerts/__init__.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/alerts/client.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/bench/__init__.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/bench/client.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/client.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/common/__init__.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/common/client.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/enrichments/__init__.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/inferences/__init__.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/inferences/client.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/insights/__init__.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/insights/client.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/metrics/__init__.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/metrics/client.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/model_groups/__init__.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/model_groups/client.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/models/__init__.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/models/client.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/query/__init__.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/query/client.py +1 -1
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/types.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/common/__init__.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/common/constants.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/common/exceptions.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/common/log.py +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur_client.egg-info/SOURCES.txt +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur_client.egg-info/dependency_links.txt +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur_client.egg-info/requires.txt +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur_client.egg-info/top_level.txt +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/client-readme-public.md +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/pyproject.toml +0 -0
- {arthur-client-0.5.0 → arthur-client-0.6.0}/setup.cfg +0 -0
@@ -12,7 +12,7 @@ from arthur.client.rest.enrichments.models import (
|
|
12
12
|
BiasConstraintEnum,
|
13
13
|
BiasMitigationEnrichmentConfiguration,
|
14
14
|
BiasMitigationEnrichmentResponse,
|
15
|
-
|
15
|
+
EnrichmentsRequest,
|
16
16
|
EnrichmentsResponse,
|
17
17
|
ExplainabilityEnrichmentMultipartRequestBody,
|
18
18
|
ExplainabilityEnrichmentRequest,
|
@@ -102,14 +102,14 @@ class ArthurEnrichmentsClient:
|
|
102
102
|
def update_enrichment_config(
|
103
103
|
self,
|
104
104
|
model_id: str,
|
105
|
-
json_body:
|
105
|
+
json_body: EnrichmentsRequest,
|
106
106
|
multipart_data: ExplainabilityEnrichmentMultipartRequestBody,
|
107
107
|
) -> Response:
|
108
108
|
"""
|
109
109
|
Updates the enrichment configuration for a model
|
110
110
|
|
111
111
|
:param model_id:
|
112
|
-
:param json_body: A
|
112
|
+
:param json_body: Configures multiple enrichments. A multipart/form-data body with at least a `configuration` JSON body. If explainability is being enabled for the first time, artifacts must be supplied.
|
113
113
|
:param multipart_data: When setting up explainability, a config must always be provided. The explainability enrichment artifact files may be provided all together, but a config must be provided as well, regardless of whether the config has already been set.
|
114
114
|
"""
|
115
115
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# generated by datamodel-codegen:
|
2
2
|
# filename: enrichments.yaml
|
3
|
-
# timestamp: 2023-10-
|
3
|
+
# timestamp: 2023-10-04T15:04:36+00:00
|
4
4
|
|
5
5
|
from __future__ import annotations
|
6
6
|
|
@@ -199,6 +199,17 @@ class ExplainabilityEnrichmentRequest(BaseModel):
|
|
199
199
|
"""
|
200
200
|
|
201
201
|
|
202
|
+
class EnrichmentsRequest(BaseModel):
|
203
|
+
"""
|
204
|
+
Configures multiple enrichments. A multipart/form-data body with at least a `configuration` JSON body. If explainability is being enabled for the first time, artifacts must be supplied.
|
205
|
+
"""
|
206
|
+
|
207
|
+
config: Optional[EnrichmentsConfiguration] = None
|
208
|
+
"""
|
209
|
+
Enrichments configuration
|
210
|
+
"""
|
211
|
+
|
212
|
+
|
202
213
|
class ExplanationValuesWhatIf(BaseModel):
|
203
214
|
attribute_name: str = Field(..., example='feature_a')
|
204
215
|
explanation_value: float = Field(..., example=0.12)
|
@@ -333,14 +344,6 @@ class WhatIfRequest(BaseModel):
|
|
333
344
|
model_pipeline_input: List[WhatIfAttributeRequest]
|
334
345
|
|
335
346
|
|
336
|
-
class EnrichmentsRequest(EnrichmentsConfiguration):
|
337
|
-
"""
|
338
|
-
Configures multiple enrichments. A multipart/form-data body with at least a `configuration` JSON body. If explainability is being enabled for the first time, artifacts must be supplied.
|
339
|
-
"""
|
340
|
-
|
341
|
-
pass
|
342
|
-
|
343
|
-
|
344
347
|
class EnrichmentStatusUpdate(EnrichmentStatus):
|
345
348
|
"""
|
346
349
|
Updates status for an enrichment. A body with at least a `status` key.
|
@@ -1,2 +1,2 @@
|
|
1
|
-
__version__ = "0.
|
1
|
+
__version__ = "0.6.0"
|
2
2
|
api_spec_version = "3.0.0"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -6,7 +6,6 @@ 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
|
10
9
|
from arthur.client.rest.query.models import (
|
11
10
|
DataDriftResponse,
|
12
11
|
DataDriftTableRequest,
|
@@ -14,6 +13,7 @@ from arthur.client.rest.query.models import (
|
|
14
13
|
DistributionsRequest,
|
15
14
|
QueryResult,
|
16
15
|
)
|
16
|
+
from arthur.client.rest.common.models import DataDriftRequest, QueryRequest
|
17
17
|
|
18
18
|
|
19
19
|
PATH_PREFIX = "/api"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|