コンテンツにスキップ

HeatmapAdvice

Result.recommend_heatmaps(Heatmap Advisor)が返します。使い方は Agent Analysis を参照してください。

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.

属性:

名前 タイプ デスクリプション
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 recommended_params dict (forward-compatible).

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).

引数:

名前 タイプ デスクリプション デフォルト

index

int

Which recommended view to fetch (0-based; default the first).

0

dataset_type

Optional[str]

Which dataset to visualize. Priority: explicit argument > the view's recommended dataset_type > the Result.get_heatmap default ("train"). Fetching at the recommended dataset_type matches the server cache-warm params.

None

**overrides

Any

Forwarded to Result.get_heatmap (e.g. n_bins / aggregation_level / input_strategy / sequence_mapping), applied last so they win over the recommended params. Rendering options (mode / cmap / ...) belong on the returned Heatmap's .show() / .save(), not here.

{}

発生:

タイプ デスクリプション
ValueError

This advice is not bound to a Result, or index is out of range.