(cm-values predicted-labels labels opts)Generates confusion matrix data for visualization.
predicted-labels - Sequence of predicted class labels
labels - Sequence of actual class labels
opts - Options map with optional :normalize key (:none, :true, :pred, :all)
Returns a sequence of maps, each containing:
:actual - Actual class label:predicted - Predicted class label:count - Count or normalized value from confusion matrixUse with confusion-matrix-chart to create a visualization.
See also: scicloj.metamorph.ml.classification/confusion-map
Generates confusion matrix data for visualization. `predicted-labels` - Sequence of predicted class labels `labels` - Sequence of actual class labels `opts` - Options map with optional `:normalize` key (`:none`, `:true`, `:pred`, `:all`) Returns a sequence of maps, each containing: * `:actual` - Actual class label * `:predicted` - Predicted class label * `:count` - Count or normalized value from confusion matrix Use with `confusion-matrix-chart` to create a visualization. See also: `scicloj.metamorph.ml.classification/confusion-map`
(confusion-matrix-chart values)Creates a Hanami/Vega-Lite specification for a confusion matrix heatmap.
values - Sequence of maps with keys: :actual, :predicted, :count
Returns a Hanami layer chart with:
Use with cm-values to generate input data from predictions and labels.
Creates a Hanami/Vega-Lite specification for a confusion matrix heatmap. `values` - Sequence of maps with keys: `:actual`, `:predicted`, `:count` Returns a Hanami layer chart with: * X-axis: predicted labels (nominal) * Y-axis: actual labels (nominal) * Color: count values (yellow-orange-red scale) * Text overlay: count values Use with `cm-values` to generate input data from predictions and labels.
Hanami layer specification for confusion matrix visualization.
Combines a colored rectangle layer (for the heatmap) with a text layer (for count values). Uses XY encoding with count values displayed as text overlay.
Hanami layer specification for confusion matrix visualization. Combines a colored rectangle layer (for the heatmap) with a text layer (for count values). Uses XY encoding with count values displayed as text overlay.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |