Skip to content

Commit aef41ca

Browse files
committed
re-word Group
1 parent 10d2fc0 commit aef41ca

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ads/opctl/operator/lowcode/anomaly/model/base_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def generate_report(self):
107107
plt.ylabel(col)
108108
plt.title(f"`{col}` with reference to anomalies")
109109
figure_blocks.append(ax)
110-
blocks.append(rc.Group(blocks=figure_blocks, label=target))
110+
blocks.append(rc.Group(figure_blocks, label=target))
111111
plots = rc.Select(blocks=blocks) if len(blocks) > 1 else blocks[0]
112112

113113
report_sections = []

ads/opctl/operator/lowcode/pii/model/report.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def _make_stats_card(self):
254254
index=True,
255255
)
256256
)
257-
return rc.Group(blocks=stats, label="STATS")
257+
return rc.Group(stats, label="STATS")
258258

259259
def _make_text_card(self):
260260
annotations = []
@@ -420,13 +420,13 @@ def _make_summary_stats_card(self) -> rc.Group:
420420
entites_df = self._build_total_entity_df()
421421
summary_stats.append(rc.Heading("Resolved Entities", level=3))
422422
summary_stats.append(rc.DataTable(entites_df, index=True))
423-
return rc.Group(blocks=summary_stats, label="STATS")
423+
return rc.Group(summary_stats, label="STATS")
424424

425425
def _make_yaml_card(self) -> rc.Group:
426426
"""Shows the full pii config yaml."""
427427
yaml_appendix_title = rc.Heading("Reference: YAML File", level=2)
428428
yaml_appendix = rc.Yaml(self.report_spec.run_summary.config.to_dict())
429-
return rc.Group(blocks=[yaml_appendix_title, yaml_appendix], label="YAML")
429+
return rc.Group(yaml_appendix_title, yaml_appendix, label="YAML")
430430

431431
def _make_model_card(self) -> rc.Group:
432432
"""Generates model card."""
@@ -446,12 +446,12 @@ def _make_model_card(self) -> rc.Group:
446446

447447
if len(model_cards) <= 1:
448448
return rc.Group(
449-
blocks=model_cards,
449+
model_cards,
450450
label="MODEL CARD",
451451
)
452452
return rc.Group(
453453
rc.Select(
454-
blocks=model_cards,
454+
model_cards,
455455
type=rc.SelectType.TABS,
456456
),
457457
label="MODEL CARD",

0 commit comments

Comments
 (0)