From e35ef8e12911b04a8734de7762d6f3d3c8ee378f Mon Sep 17 00:00:00 2001 From: Vyacheslav Morov Date: Tue, 17 Dec 2024 00:01:06 +0100 Subject: [PATCH] Add separate render for metrics and checks. --- examples/metric_workbench.ipynb | 57 +++++++++++------ src/evidently/model/widget.py | 1 + src/evidently/renderers/html_widgets.py | 13 ++++ src/evidently/v2/checks/numerical_checks.py | 15 +++-- src/evidently/v2/metrics/base.py | 36 +++++++---- src/evidently/v2/report.py | 69 +++++++++++++++++---- 6 files changed, 142 insertions(+), 49 deletions(-) diff --git a/examples/metric_workbench.ipynb b/examples/metric_workbench.ipynb index 25459c921e..cefa63620f 100644 --- a/examples/metric_workbench.ipynb +++ b/examples/metric_workbench.ipynb @@ -6,8 +6,8 @@ "id": "initial_id", "metadata": { "ExecuteTime": { - "end_time": "2024-12-09T18:07:57.136304Z", - "start_time": "2024-12-09T18:07:57.132965Z" + "end_time": "2024-12-16T12:58:56.980232Z", + "start_time": "2024-12-16T12:58:56.963098Z" } }, "outputs": [], @@ -257,7 +257,7 @@ { "data": { "text/plain": [ - "[BaseWidgetInfo(type='counter', title='Max value for column_1', size=2, id='0193c087-6de8-79c8-be16-8235ee890673', details='', alertsPosition=None, alertStats=None, params={'counters': [{'value': np.int64(5), 'label': ''}]}, insights=[], additionalGraphs=[], alerts=[], tabs=[], widgets=[], pageSize=5, source_fingerprint=None)]" + "[BaseWidgetInfo(type='counter', title='Max value for column_1', size=2, id='0193d1ac-745c-733d-b288-5731db82077a', details='', alertsPosition=None, alertStats=None, params={'counters': [{'value': np.int64(5), 'label': ''}]}, insights=[], additionalGraphs=[], alerts=[], tabs=[], widgets=[], pageSize=5, source_fingerprint=None)]" ] }, "execution_count": 6, @@ -347,7 +347,7 @@ " })()\n", " \n", " \n", - "