Skip to content

Commit 191a43c

Browse files
author
Sushanth Sathish Kumar
committed
fix: Add strong regex checking for model quality dashboard
1 parent a1c825b commit 191a43c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sagemaker/dashboard/model_quality_dashboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def _generate_widgets(self):
130130
for graphs_per_line in metrics_to_graph:
131131
for graph in graphs_per_line:
132132
graph_title = graph[0]
133-
graph_metrics = graph[1]
133+
graph_metrics = ["%^" + str(metric) + "$%" for metric in graph[1]]
134134
metrics_string = " OR ".join(graph_metrics)
135135
if self.batch_transform is not None:
136136
graph_properties = DashboardWidgetProperties(

0 commit comments

Comments
 (0)