fiddler-client 2.0.5__tar.gz → 2.0.7__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.
Files changed (105) hide show
  1. fiddler-client-2.0.7/LICENSE.txt +13 -0
  2. fiddler-client-2.0.7/PKG-INFO +485 -0
  3. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/PUBLIC.md +9 -0
  4. fiddler-client-2.0.7/fiddler/_version.py +1 -0
  5. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/schema/alert.py +1 -1
  6. fiddler-client-2.0.7/fiddler_client.egg-info/PKG-INFO +485 -0
  7. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler_client.egg-info/SOURCES.txt +1 -0
  8. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler_client.egg-info/requires.txt +7 -7
  9. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/setup.py +1 -1
  10. fiddler-client-2.0.5/PKG-INFO +0 -467
  11. fiddler-client-2.0.5/fiddler/_version.py +0 -1
  12. fiddler-client-2.0.5/fiddler_client.egg-info/PKG-INFO +0 -467
  13. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/MANIFEST.in +0 -0
  14. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/README.md +0 -0
  15. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/__init__.py +0 -0
  16. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/api/__init__.py +0 -0
  17. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/api/alert_mixin.py +0 -0
  18. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/api/api.py +0 -0
  19. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/api/baseline_mixin.py +0 -0
  20. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/api/dataset_mixin.py +0 -0
  21. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/api/events_mixin.py +0 -0
  22. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/api/explainability_mixin.py +0 -0
  23. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/api/generate_schema_mixin.py +0 -0
  24. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/api/helpers.py +0 -0
  25. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/api/job_mixin.py +0 -0
  26. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/api/model_artifact_deploy.py +0 -0
  27. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/api/model_deployment_mixin.py +0 -0
  28. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/api/model_mixin.py +0 -0
  29. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/api/project_mixin.py +0 -0
  30. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/api/webhooks_mixin.py +0 -0
  31. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/assets/__init__.py +0 -0
  32. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/assets/pg_reserved_words.py +0 -0
  33. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/constants.py +0 -0
  34. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/core_objects.py +0 -0
  35. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/exceptions.py +0 -0
  36. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/libs/__init__.py +0 -0
  37. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/libs/http_client.py +0 -0
  38. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/packtools/__init__.py +0 -0
  39. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/packtools/gem.py +0 -0
  40. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/packtools/keras_ig_helpers.py +0 -0
  41. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/packtools/project_attributions_helpers.py +0 -0
  42. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/packtools/template_model.py +0 -0
  43. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/schema/__init__.py +0 -0
  44. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/schema/base.py +0 -0
  45. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/schema/baseline.py +0 -0
  46. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/schema/dataset.py +0 -0
  47. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/schema/events.py +0 -0
  48. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/schema/job.py +0 -0
  49. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/schema/model.py +0 -0
  50. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/schema/model_deployment.py +0 -0
  51. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/schema/project.py +0 -0
  52. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/schema/server_info.py +0 -0
  53. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/schema/user.py +0 -0
  54. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/schema/webhook.py +0 -0
  55. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/schemas/__init__.py +0 -0
  56. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/schemas/custom_features.py +0 -0
  57. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/schemas/model_schema.py +0 -0
  58. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/schemas/model_spec.py +0 -0
  59. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/schemas/model_task_params.py +0 -0
  60. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/schemas/xai_params.py +0 -0
  61. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/utils/__init__.py +0 -0
  62. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/utils/decorators.py +0 -0
  63. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/utils/formatting.py +0 -0
  64. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/utils/general_checks.py +0 -0
  65. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/utils/helpers.py +0 -0
  66. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/utils/logger.py +0 -0
  67. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/utils/pandas_helper.py +0 -0
  68. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/utils/response_handler.py +0 -0
  69. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/utils/semver_version.py +0 -0
  70. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/utils/validations.py +0 -0
  71. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/utils/validator.py +0 -0
  72. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/validators/__init__.py +0 -0
  73. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler/validators/dataset_validator.py +0 -0
  74. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler_client.egg-info/dependency_links.txt +0 -0
  75. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/fiddler_client.egg-info/top_level.txt +0 -0
  76. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/setup.cfg +0 -0
  77. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/__init__.py +0 -0
  78. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/fiddler/__init__.py +0 -0
  79. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/fiddler/base.py +0 -0
  80. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/fiddler/helper.py +0 -0
  81. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/fiddler/test_add_model.py +0 -0
  82. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/fiddler/test_alert.py +0 -0
  83. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/fiddler/test_baseline.py +0 -0
  84. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/fiddler/test_check_version_decorator.py +0 -0
  85. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/fiddler/test_custom_features.py +0 -0
  86. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/fiddler/test_dataset_api.py +0 -0
  87. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/fiddler/test_events_api.py +0 -0
  88. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/fiddler/test_exceptions.py +0 -0
  89. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/fiddler/test_explainability_apis.py +0 -0
  90. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/fiddler/test_file_upload.py +0 -0
  91. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/fiddler/test_generate_schema.py +0 -0
  92. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/fiddler/test_helpers.py +0 -0
  93. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/fiddler/test_job.py +0 -0
  94. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/fiddler/test_model.py +0 -0
  95. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/fiddler/test_project.py +0 -0
  96. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/fiddler/test_response_handler.py +0 -0
  97. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/fiddler/test_upload_dataset.py +0 -0
  98. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/fiddler/test_validations.py +0 -0
  99. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/fiddler/test_webhook.py +0 -0
  100. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/fiddler/utils/__init__.py +0 -0
  101. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/fiddler/utils/test_general_checks.py +0 -0
  102. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/fiddler/utils/test_pandas.py +0 -0
  103. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/fiddler/utils/tests_utils.py +0 -0
  104. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/test_object_inference.py +0 -0
  105. {fiddler-client-2.0.5 → fiddler-client-2.0.7}/tests/utils.py +0 -0
@@ -0,0 +1,13 @@
1
+ Copyright 2019 Fiddler Labs, Inc.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
@@ -0,0 +1,485 @@
1
+ Metadata-Version: 2.1
2
+ Name: fiddler-client
3
+ Version: 2.0.7
4
+ Summary: Python client for Fiddler Service
5
+ Home-page: https://fiddler.ai
6
+ Author: Fiddler Labs
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: License :: OSI Approved :: Apache Software License
9
+ Classifier: Operating System :: OS Independent
10
+ Requires-Python: >3.6.3
11
+ Description-Content-Type: text/markdown
12
+ License-File: LICENSE.txt
13
+ Requires-Dist: pip>=21.0
14
+ Requires-Dist: requests<3
15
+ Requires-Dist: requests-toolbelt
16
+ Requires-Dist: pandas>=1.2.5
17
+ Requires-Dist: pydantic==1.9.0
18
+ Requires-Dist: deprecated==1.2.13
19
+ Requires-Dist: tqdm
20
+ Requires-Dist: simplejson>=3.17.0
21
+ Requires-Dist: pyarrow>=7.0.0
22
+ Requires-Dist: pyyaml
23
+
24
+ Fiddler Client
25
+ =============
26
+
27
+ Python client for interacting with Fiddler. Provides a user-friendly interface to our REST API and enables event
28
+ publishing for use with our monitoring features.
29
+
30
+ Requirements
31
+ ------------
32
+ Requires Python >= Python-3.6.3 and pip >= 19.0
33
+
34
+ Installation
35
+ ------------
36
+
37
+ $ pip3 install fiddler-client
38
+
39
+ API Example Usage
40
+ -------------
41
+ Documentation for the API can be found [here](https://docs.fiddler.ai/reference/about-the-fiddler-client). For examples of interacting with our APIs, please check out our [Quick Start Guide](https://docs.fiddler.ai/docs/quick-start) as well as the notebooks found on our [Examples Github](https://github.com/fiddler-labs/fiddler-examples).
42
+
43
+ Version History
44
+ -------------
45
+
46
+ ### 2.0.7
47
+ - #### **Modifications**
48
+ - Support string metric types for alert creation, for server 23.7.
49
+
50
+ ### 2.0.6
51
+ - #### **Modifications**
52
+ - Update `pyarrow` requirement to `7.0.0`.
53
+
54
+ ### 2.0.5
55
+ - #### **Modifications**
56
+ - Fix for a minor bug in `fdl.DatasetInfo.from_dataframe()`
57
+
58
+ ### 2.0.4
59
+ - #### **Modifications**
60
+ - Update `pyarrow` requirement to `13.0.0`.
61
+
62
+ ### 2.0.3
63
+ - #### **Modifications**
64
+ - Relax pandas version for 2.0.
65
+ - get_slice() `query` parameter reverted to `sql_query`
66
+
67
+ ### 2.0.2
68
+ - #### **Modifications**
69
+ - Fix Parquet conversion issue in `upload_dataset` and `publish_event_batch`
70
+
71
+ ### 2.0.1
72
+ - #### **Removed**
73
+ - Following methods are removed
74
+ - register_model
75
+ - upload_model_package
76
+ - update_model
77
+ - trigger_pre_computation
78
+ - _trigger_model_predictions
79
+ - generate_sample_events
80
+ - list_teams
81
+ - list_project_roles
82
+ - list_org_roles
83
+ - unshare_project
84
+ - share_project
85
+ - process_avro
86
+ - process_csv
87
+ - #### **New Features**
88
+ - Add `monitor_components` as an attribute for `CustomFeature` of type `FROM_COLUMNS`. Default as `False`
89
+ - Adds new statistic type `SUM` to supported alert metrics
90
+ - Support `CustomFeature` of type `FROM_VECTOR` `FROM_TEXT_EMBEDDING` and `FROM_IMAGE_EMBEDDING`
91
+ - #### **Modifications**
92
+ - Remove `column` as a parameter in `add_alert_rule` and `get_alert_rules` functions
93
+ - Default `FileType` Parquet in `upload_dataset` and `publish_event_batch`
94
+ - get_slice() `sql_query` parameter changed to `query`
95
+
96
+ ### 1.8.6
97
+ - #### **Modifications**
98
+ - Relax pandas version for 2.0.
99
+
100
+ ### 1.8.4
101
+ - #### **New Features**
102
+ - New DeploymentType enum for `MANUAL` deployment
103
+
104
+ ### 1.8.3
105
+ - #### **Modifications**
106
+ - New `columns` parameter in add_alert_rule and get_alert_rules to support multiple columns to be used for server version >= 23.3.0
107
+ - get_triggered_alerts supports `alert_value` as a float as well as a dict
108
+
109
+ ### 1.8.2
110
+ - #### **Modifications**
111
+ - Fixed a bug where `min` and `max` for columns of type `float` in `dataset_info` are cast into `int` after uploaded
112
+
113
+ ### 1.8.1
114
+ - #### **Modifications**
115
+ - Fixed a bug wherein null string was going in request body if body wasn't specified.
116
+ - Fix `categorical_target_class_details` when passed as an array
117
+ - Fix a bug where `fdl.ModelInputType.TEXT` were not being accepted properly
118
+ - Fix `categorical_target_class_details` when passed as an empty list
119
+
120
+
121
+ ### 1.8.0
122
+ - #### **Modifications**
123
+ - Add new alert type - `statistic` for setting alerts
124
+ - Add `target_class_order` as a required field of `ModelInfo` object when `model_task` is `MULTICLASS_CLASSIFICATION`,
125
+ `RANKING` or `BINARY_CLASSIFICATION`. Only applies for `BINARY_CLASSIFICATION` when target column is of type `CATEGORY`
126
+ - Add `columns` as a parameter in `add_alert_rule` and `get_alert_rules` functions
127
+ - Add deprecation warning for `column` as a parameter in `add_alert_rule` and `get_alert_rules` functions
128
+
129
+ ### 1.7.4
130
+ - #### **Modification**
131
+ - Do not typecast column with strings in get_slice()
132
+
133
+ ### 1.7.3
134
+ - #### **Modification**
135
+ - Send row and column count information to dataset upload api
136
+
137
+ ### 1.7.2
138
+ - #### **Modification**
139
+ - Bring back `WeightingParams` object
140
+
141
+ ### 1.7.1
142
+ - #### **Modification**
143
+ - Relaxed boto3 version constraint
144
+
145
+ ### 1.7.0
146
+ - #### **Removed**
147
+ - Remove support for initializing fiddler client with version=1
148
+ - Following methods are removed
149
+ - get_segment_info
150
+ - delete_segment
151
+ - deactivate_segment
152
+ - activate_segment
153
+ - list_segments
154
+ - upload_segment
155
+ - add_monitoring_config
156
+ - publish_parquet_s3
157
+ - publish_events_log
158
+
159
+ ### 1.6.2
160
+ - #### **Modifications**
161
+ - Make dataset_id a required field in add_model()
162
+ - Update max_inferred_cardinality to 100
163
+ - #### **New Features**
164
+ - New method for updating a model artifact `update_model_artifact`
165
+
166
+ ### 1.5.3
167
+ - #### **Modifications**
168
+ - Fix add_model_artifact error for NLP models
169
+ - Add model_info validation during add_model
170
+
171
+ ### 1.5.2
172
+ - #### **Modifications**
173
+ - Add fix for self signed certificate not working by adding verify param to FiddlerApi
174
+
175
+ ### 1.5.1
176
+ - #### **Modifications**
177
+ - Fix in `violation_of_type` to include numpy dtypes such as `int64`
178
+
179
+ ### 1.5.0
180
+ - #### **New Features**
181
+ - New methods addition for alert rules: `add_alert_rule`, `get_alert_rules`, `delete_alert_rule`
182
+ - New method to get triggered alerts for an alert rule: `get_triggered_alerts`
183
+
184
+ ### 1.4.5
185
+ - #### **Modifications**
186
+ - Assert nullable columns in `missing_value_encodings`(If users send non-nullable columns as `missing_value_encodings`, Fiddler converts them as nullable automatically with a warning)
187
+
188
+ ### 1.4.4
189
+ - #### **Modifications**
190
+ - Allow types other than `Column data_type` for `missing_value_encodings`.
191
+
192
+ ### 1.4.3
193
+ - #### **Modifications**
194
+ - Accept `string` `'inf'` in `float` columns in `missing_value_encodings`.
195
+
196
+ ### 1.4.2
197
+ - #### **New Features**
198
+ - Support `missing_value_encodings` as a new field of `model_info` object.
199
+ ### 1.4.1
200
+ - #### **Modifications**
201
+ - Minor bug fix to handle string nan
202
+
203
+ ### 1.4.0
204
+ - #### **Modifications**
205
+ - Default client initiation is now the v2 client
206
+ - `publish_events_batch` is now async, returns status id and doesn't wait for the upload to complete.
207
+ - Default behavior of all publish data in v2 client is async (`is_sync = False`)
208
+
209
+ ### 1.3.0
210
+ - #### **New Features**
211
+ - New capabilities for Artifact-less Monitoring
212
+
213
+ ### 1.2.8
214
+ - ### **Modifications**
215
+ - Change the `batch_size` argument default to 1000 for `trigger_pre_computation`
216
+ - Updated the `delete_model` API default value for the `delete_prod` parameter from False to True.
217
+ - We will by default delete all the events associated with the model.
218
+
219
+
220
+ ### 1.2.7
221
+ - ### **Modifications**
222
+ - Added check for "model" key before access in from_dict
223
+ - Allow changing artifact_status when updating the model
224
+ - Adds docstrings for add_model, add_model_surrogate and add_model_artifact
225
+
226
+ ### 1.2.6
227
+ - ### **Modifications**
228
+ - Fixed publish_events_batch_schema backward compatible.
229
+
230
+ ### 1.2.5
231
+ - ### **Modifications**
232
+ - Added add_model_surrogate and add_model_artifact APIs for artifactless monitoring
233
+ - Simplifies the add_model API by removing unnecessary parameters
234
+ - Fixed publish_events_batch_schema parameter names.
235
+
236
+
237
+ ### 1.2.4
238
+ - ### **Modifications**
239
+ - Fixed a type coercion bug that caused some get_slice calls to fail cryptically
240
+
241
+ ### 1.2.3
242
+ - ### **Modifications**
243
+ - Map Tree shap values from log odds space to probability space
244
+ - Added add_model API for artifactless monitoring
245
+ - Fixed bug in request when creating a model using add_model
246
+
247
+ ### 1.2.2
248
+ - ### **Modifications**
249
+ - Fixed a bug that prevented importing the client in some environments.
250
+
251
+ ### 1.2.1
252
+ - ### **Modifications**
253
+ - Removed unnecessary server-client version check that produced an uninformative warning.
254
+
255
+ ### 1.2.0
256
+ - #### **New Features**
257
+ - New `WeightingParams` object. This enables weighted histograms for class-imbalanced models.
258
+ - #### **Modifications**
259
+ - `update_model` allows some small modifications in model info for the following fields: custom_explanation_names, preferred_explanation_method, display_name, description, framework, algorithm and model_deployment_params
260
+
261
+
262
+ ### 1.1.0
263
+ - #### **New Features**
264
+ - Add v2 client. v2 methods can be accessed either via sub-module (`client.v2.`) or by instantiating the `FiddlerApi` and passing `version=2`.
265
+ - #### **Modifications**
266
+ - Remove handlers from root logger
267
+ - Add url, org_id, auth_token and version validation while instantiating client
268
+ - Fix dataset ingestion file extension issue
269
+ - init monitoring issue
270
+ - Fix publish_event request header bug
271
+ - Add `publish_events_batch_dataframe` and `upload_dataset_dataframe` methods
272
+ - Support for DatasetInfo class
273
+ - Using `http_client` package. A wrapper over `requetsts`.
274
+
275
+ ### 1.0.6
276
+ - #### **Modifications**
277
+ - Add client v2 sub-package.
278
+ ### 1.0.5
279
+ - ##### **Modifications**
280
+ - relax the version requirements for `requests`.
281
+ - adds flag to init_monitoring to enable synchronous initialization
282
+ ### 1.0.4
283
+ - ##### **Modifications**
284
+ - Fixed the JSON transformation issue which was forcing `requests` package upgrade issue
285
+ ### 1.0.3
286
+ - ##### **New Features**
287
+ - Tree SHAP Helper.
288
+ - ##### **Modifications**
289
+ - `fdl.ModelInfo` has an additional optional parameter to enabled Tree Shap
290
+
291
+ ### 1.0.2
292
+ - ##### **New Features**
293
+ - Integrated Gradients Keras TF2 Helpers.
294
+ - ##### **Modifications**
295
+ - Relax `botocore` version requirements.
296
+
297
+ ### 1.0.1
298
+ - ##### **Modifications**
299
+ - Minor bug fixes and improvements.
300
+ - `run_explanation` has two additional optional arguments (`n_permutation` and `n_background`) allowing users to change the default parameters for Fiddler SHAP explanations.
301
+
302
+ ### 1.0.0
303
+
304
+ Inaugural client for Fiddler 22.0! This version includes numerous improvements for stability, performance, and usability.
305
+
306
+ Compatible with server versions >=22.0.0.
307
+
308
+ ### 0.8.1.8
309
+ - ##### **Modifications**
310
+ - Minor bug fixes and improvements.
311
+
312
+ ### 0.8.1.7
313
+ - ##### **Modifications**
314
+ - Minor bug fixes and improvements.
315
+
316
+ ### 0.8.1.6
317
+ - ##### **Modifications**
318
+ - Add a parameter in list_projects API to get detailed project information
319
+ - Minor bug fix for the datetime format.
320
+
321
+ ### 0.8.1.5
322
+ - ##### **Modifications**
323
+ - Add a parameter in list_projects API to get detailed project information
324
+ - Allow `run_explanation` api call to pass a list of explanation with `ig_flex` and one of the shap algorithm
325
+
326
+ ### 0.8.1.4
327
+ - ##### **Modifications**
328
+ - Minor bugfix for categorical feature drift
329
+
330
+ ### 0.8.1.3
331
+ - ##### **Modifications**
332
+ - Addressed an issue with categorical features with string literals containing numeric content
333
+
334
+ ### 0.8.1.2
335
+ - ##### **Modifications**
336
+ - Implement a ranking surrogate model for ranking task models
337
+
338
+ ### 0.8.1.1
339
+ - ##### **Modifications**
340
+ - change the dependecy of requests package to 0.25.1
341
+
342
+ ### 0.8.1
343
+ - ##### **Modifications**
344
+ - Improved `SegmentInfo` validation.
345
+ - make the dependency versions less strict.
346
+
347
+ ### 0.8.0
348
+ - ##### **New Features**
349
+ - New `publish_events_batch_schema` API call, Publishes a batch events object to Fiddler Service using the passed `publish_schema` as a template.
350
+ - New Ranking Monitoring capability available with publish_events_batch API
351
+ - ##### **Modifications**
352
+ - Enforced package versions in setup.py
353
+ - `trigger_pre_computation` has an additional optional argument (`cache_dataset`) to enable/disable dataset histograms caching.
354
+ - `register_model` has 3 additional optional arguments to enable/disable pdp caching (set to False by default), feature importance caching (set to True by default) and dataset histograms caching (set to True by default).
355
+
356
+ ### 0.7.6
357
+ - ##### **New Features**
358
+ - New segment monitoring related functionality (currently in preview):
359
+ - Ability to create and validate `SegmentInfo` objects,
360
+ - `upload_segment` BE call,
361
+ - `activate_segment` BE call,
362
+ - `deactivate_segment` BE call, and
363
+ - `list_segments` BE call,
364
+ - ##### **Modifications**
365
+ - Upon connecting to the server, the client now performs a version check for the *server* by default. Earlier the default was to only do a version check for the client.
366
+
367
+ ### 0.7.5
368
+ - ##### **New Features**
369
+ - New `update_event` parameter for `publish_events_batch` API.
370
+ - Changes to `fdl.publish_event()`:
371
+ - Renamed parameter `event_time_stamp` to `event_timestamp`
372
+ - Added new parameter: `timestamp_format`
373
+ - Allows specification of timestamp format using the `FiddlerTimestamp` class
374
+
375
+ ### 0.7.4
376
+ - ##### **New Features**
377
+ - New `initialize_monitoring` API call, sets up monitoring for a model. Intended to also work retroactively for legacy schema.
378
+ - ##### **Modifications**
379
+ - Modified `DatasetInfo.from_dataframe` and `ModelInfo.from_dataset_info` to take additional `dataset_id` as parameter.
380
+ - Modified the `outputs` parameter of `ModelInfo.from_dataset_info` to now expect a dictionary in case of regression tasks, specifying output range.
381
+ - Modified the `preferred_explanation_method` parameter of `ModelInfo.from_dataset_info` to accept string names from `custom_explanation_names`. Details in docstring.
382
+ - Misc bug fixes and documentation enhancements.
383
+
384
+ ### 0.7.3
385
+ - ##### **New Features**
386
+ - Changed the default display for `ModelInfo` and `DatasetInfo` to render HTML instead of plaintext, when accessed via jupyter notebooks
387
+ - Added support for GCP Storage ingestion of log events using `fdl.BatchPublishType.GCP_STORAGE`
388
+
389
+ ### 0.7.2
390
+ - ##### **New Features**
391
+ - Restructured the following arguments for `fdl.ModelInfo.from_dataset_info()`
392
+ - Added: `categorical_target_class_details`:
393
+ - Mandatory for Multiclass classification tasks, optional for Binary (unused for Regression)
394
+ - Used to specify the positive class for Binary classification, and the class order for Multiclass classification
395
+ - Modified: `target`:
396
+ - No longer optional, models must specify target columns
397
+
398
+ ### 0.7.1
399
+ - ##### **New Features**
400
+ - Restructured the following arguments for `fdl.publish_events_batch()`
401
+ - Added: `id_field`:
402
+ - Column to extract `id` value from
403
+ - Added: `timestamp_format`:
404
+ - Format of timestamp within batch object. Can be one of:
405
+ - `fdl.FiddlerTimestamp.INFER`
406
+ - `fdl.FiddlerTimestamp.EPOCH_MILLISECONDS`
407
+ - `fdl.FiddlerTimestamp.EPOCH_SECONDS`
408
+ - `fdl.FiddlerTimestamp.ISO_8601`
409
+ Removed: `default_timestamp`
410
+ - Minor bug fixes
411
+ - ##### **Deprecation Warning**
412
+ - Support `fdl.publish_events_log` and `fdl.publish_parquet_s3` will soon be
413
+ deprecated in favor of `fdl.publish_events_batch()`
414
+
415
+
416
+ ### 0.7.0
417
+ - ##### **Dataset Refactor**
418
+ - Datasets refactored to be members of a Project
419
+ - *This is a change promoting Datasets to be first class within Fiddler. It will affects both the UI and several API in Fiddler*
420
+ - Many API utilizing Projects will now require `project_id` passed as a parameter
421
+ - ##### **New Features**
422
+ - Added `fdl.update_model()` to client
423
+ - *update the specified model, with model binary and package.py from
424
+ the specified model_dir*
425
+ - Added `fdl.get_model()` to client
426
+ - *download the model binary, package.py and model.yaml to the given
427
+ output dir.*
428
+ - Added `fdl.publish_events_batch()` to client
429
+ - *Publishes a batch events object to Fiddler Service.*
430
+ - *Note: Support for other batch methods including `fdl.publish_events_log()`
431
+ and `fdl.publish_parquet_s3()` will be deprecated in the near future
432
+ in favor of `fdl.publish_events_batch()`*
433
+ - ##### **Changes**
434
+ - Simplified logic within `fld.upload-dataset()`
435
+ - Added client/server handshake for checking version compatibilities
436
+ - *Warning issued in case of mismatch*
437
+ - Deleted redundant APIs
438
+ - `fdl.create_surrogate_model()`
439
+ - `fdl.upload_model_sklearn()`
440
+ - Restructured APIs to be more duck typing-friendly (relaxing data type restrictions)
441
+ - Patches for minor bug-fixes
442
+
443
+
444
+ ### 0.6.18
445
+ - ##### **Features**
446
+ - Minor updates to ease use of binary classification labels
447
+
448
+ ### 0.6.17
449
+ - ##### **Features**
450
+ - Added new arguments to `ModelInfo.from_dataset_info()`
451
+ - `preferred_explanation_method` to express a preferred default explanation algorithm for a model
452
+ - `custom_explanation_names` to support user-provided explanation algorithms which the user will implement on their model object via package.py.
453
+
454
+ ### 0.6.16
455
+ - ##### **Features**
456
+ - Minor improvements to `publish_events_log()` to circumvent datatype conversion issues
457
+
458
+ ### 0.6.15
459
+ - ##### **Features**
460
+ - Added strict name checks
461
+
462
+ ### 0.6.14
463
+ - ##### **Features**
464
+ - Added client-native multithreading support for `publish_events_log()`
465
+ using new parameters `num_threads` and `batch_size`
466
+
467
+ ### 0.6.13
468
+ - ##### **Features**
469
+ - Added `fdl.generate_sample_events()` to client
470
+ - *API for generating monitoring traffic to test out Fiddler*
471
+ - Added `fdl.trigger_pre_computation()` to client
472
+ - *Triggers various precomputation steps within the Fiddler service based on input parameters.*
473
+ - Optionally add proxies to FiddlerApi() init
474
+
475
+ ### 0.6.12
476
+ - ##### **Features**
477
+ - Added `fdl.publish_parquet_s3()` to client
478
+ - *Publishes parquet events file from S3 to Fiddler instance.
479
+ Experimental and may be expanded in the future.*
480
+
481
+ ### 0.6.10
482
+ - ##### **Features**
483
+ - Added `fdl.register_model()` to client
484
+ - *Register a model in fiddler. This will generate a surrogate model,
485
+ which can be replaced later with original model.*
@@ -19,6 +19,15 @@ Documentation for the API can be found [here](https://docs.fiddler.ai/reference/
19
19
 
20
20
  Version History
21
21
  -------------
22
+
23
+ ### 2.0.7
24
+ - #### **Modifications**
25
+ - Support string metric types for alert creation, for server 23.7.
26
+
27
+ ### 2.0.6
28
+ - #### **Modifications**
29
+ - Update `pyarrow` requirement to `7.0.0`.
30
+
22
31
  ### 2.0.5
23
32
  - #### **Modifications**
24
33
  - Fix for a minor bug in `fdl.DatasetInfo.from_dataframe()`
@@ -0,0 +1 @@
1
+ __version__ = '2.0.7'
@@ -140,7 +140,7 @@ class AlertRulePayload(BaseDataSchema):
140
140
  model_name: str
141
141
  name: str
142
142
  alert_type: Optional[AlertType]
143
- metric: Metric
143
+ metric: Union[Metric, str]
144
144
  metric_id: Union[Metric, str]
145
145
  feature_name: Optional[str]
146
146
  feature_names: Optional[List[str]]