plot_cluster_validation_from_report

Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.

plot_cluster_validation_from_report(report: Mapping[str, Any], *, title: str | None = None) → Figure[source]

Draw validation curves from a habitat-model selection_report.

Expected keys (see habit.habitat_model._selection.build_selection_report()): candidates, scores, optional methods, selected, directions.

Parameters:
  • report – Selection report mapping.

  • title – Optional figure title.

Returns:

A matplotlib Figure.

Raises:

HABITAPIError – When required keys are missing.

Examples using habit.viz.plot_cluster_validation_from_report

Quickstart: Python API

Quickstart: Python API