Skip to content

Commit

Permalink
Merge branch 'evidentlyai:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
romaindeseine authored Dec 18, 2024
2 parents 3f745ed + ca7c254 commit fbb3ef1
Show file tree
Hide file tree
Showing 23 changed files with 300 additions and 251 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
install_requires=[
"plotly>=5.10.0",
"statsmodels>=0.12.2",
"scikit-learn>=1.0.1",
"scikit-learn>=1.0.1,<1.6.0",
"pandas[parquet]>=1.3.5",
"numpy>=1.22.0,<2.1",
"nltk>=3.6.7",
Expand Down
2 changes: 1 addition & 1 deletion src/evidently/_version.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# coding: utf-8

version_info = (0, 5, 0)
version_info = (0, 5, 1)
__version__ = ".".join(map(str, version_info))


Expand Down
78 changes: 39 additions & 39 deletions src/evidently/nbextension/static/index.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/evidently/renderers/base_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ class DetailsInfo:
class TestHtmlInfo:
name: str
description: str
test_fingerprint: str
status: str
details: List[DetailsInfo]
groups: Dict[str, str]
Expand All @@ -98,6 +99,7 @@ def render_html(self, obj: TTest) -> TestHtmlInfo:
return TestHtmlInfo(
name=result.name,
description=self.html_description(obj),
test_fingerprint=obj.get_fingerprint(),
status=result.status.value,
details=[],
groups=obj.get_groups(),
Expand Down
4 changes: 3 additions & 1 deletion src/evidently/test_suite/test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from evidently.model.widget import set_source_fingerprint
from evidently.options.base import AnyOptions
from evidently.pipeline.column_mapping import ColumnMapping
from evidently.renderers.base_renderer import TestHtmlInfo
from evidently.renderers.base_renderer import TestRenderer
from evidently.renderers.base_renderer import WidgetIdGenerator
from evidently.renderers.base_renderer import replace_test_widget_ids
Expand Down Expand Up @@ -212,7 +213,7 @@ def as_dict( # type: ignore[override]
return result

def _build_dashboard_info(self):
test_results = []
test_results: List[TestHtmlInfo] = []
total_tests = len(self._inner_suite.context.test_results)
by_status = {}
color_options = self.options.color_options
Expand Down Expand Up @@ -249,6 +250,7 @@ def _build_dashboard_info(self):
dict(
title=test_info.name,
description=test_info.description,
test_fingerprint=test_info.test_fingerprint,
state=test_info.status.lower(),
details=dict(
parts=[dict(id=item.id, title=item.title, type="widget") for item in test_info.details]
Expand Down
2 changes: 1 addition & 1 deletion src/evidently/ui/assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
content="Evidently - ML Monitoring Demo. Hosted example to monitor the performance of a demand forecasting model on a toy dataset."
/>
<title>Evidently - ML Monitoring Demo</title>
<script type="module" crossorigin src="/static/js/index-BnvKIZBQ.js"></script>
<script type="module" crossorigin src="/static/js/index-D-BBKVDE.js"></script>
<link rel="modulepreload" crossorigin href="/static/js/vendor-C2GWNUp2.js">
<link rel="stylesheet" crossorigin href="/static/css/index-CJbKDbyR.css">
</head>
Expand Down

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fbb3ef1

Please sign in to comment.