HeatmapAdvice
Returned by Result.recommend_heatmaps (Heatmap Advisor). See the Agent Analysis guide for usage.
ml_debugger.result.heatmap_advice.HeatmapAdvice
dataclass
A heatmap recommendation parsed from a server analysis envelope.
Pairs a plain-language analysis :class:AnalysisNote with a list of
:class:RecommendedHeatmap views. Render the note with .show_note() /
print(advice.note) (terminals) or evaluate the advice in Jupyter (markdown);
fetch a recommended view with :meth:get_heatmap.
Attributes:
| Name | Type | Description |
|---|---|---|
note |
AnalysisNote
|
The plain-language analysis note (note/headline reuse). |
heatmaps |
List[RecommendedHeatmap]
|
The recommended heatmap views, in server-provided order. |
rationale |
str
|
Plain-language justification for the recommended views. |
references_performance_note |
bool
|
Whether the advisor built on a prior performance_analyst note. |
raw |
Dict[str, Any]
|
The full |
summary()
Return a formatted, human-readable summary of the recommended views.
The first line is the note headline; each subsequent block describes one recommended view in plain language (title, focus, axes, n_bins, aggregation_level, dataset_type).
get_heatmap(index=0, dataset_type=None, **overrides)
Fetch a recommended heatmap view by delegating to Result.get_heatmap.
Expands the recommended view at index into Result.get_heatmap
keyword arguments (axes / target / n_bins / aggregation_level /
property_filters / bbox_strategy). None axes fall back to the task defaults of
Result.get_heatmap. Fetching the view as recommended hits the server's
warmed cache, so it is fast. Render the returned
:class:~ml_debugger.visualization.schemas.Heatmap with
.show(mode=..., cmap=...) / .to_figure() / .save(path).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
int
|
Which recommended view to fetch (0-based; default the first). |
0
|
|
Optional[str]
|
Which dataset to visualize. Priority: explicit argument >
the view's recommended |
None
|
|
Any
|
Forwarded to |
{}
|
Raises:
| Type | Description |
|---|---|
ValueError
|
This advice is not bound to a |