On this page:
top
up

6Module rml/resultsπŸ”— i

This packages implements a results matrix, sometimes referred to as a confusion matrix to record the outcome of classification operations. Specifically the matrix uses all distinct classification values (ω) as both rows and columns and maps the predicted values to the labeled values incrementing the integer value at the intersection for each operation.

Examples:
> (defineresults(make-result-matrixdataset))
> (for-eachdisplayln(result-matrix-formattedresults))

(true ω predIris-versicolorIris-virginica Iris-setosa )

(Iris-versicolor000 )

(Iris-virginica 000 )

(Iris-setosa000 )

6.1Types and PredicatesπŸ”— i

predicate

( result-matrix?a)boolean?

a:any/c
Returns #f if the value of a is a result-matrix.

6.2ConstructionπŸ”— i

constructor

( make-result-matrixdataset)result-matrix?

dataset:data-set?
Create a new result-matrix using the values provided by (classifier-product dataset) as row and column indices.

6.3Recording ResultsπŸ”— i

procedure

( record-resultCtrue-ωpredicted-ω)result-matrix?

C:result-matrix?
true-ω:any/c
predicted-ω:any/c
Increment the result count for in the result-matrix for the combination of predicted and true/known classifiers.

procedure

( result-valueCtrue-ωpredicted-ω)integer?

C:result-matrix?
true-ω:any/c
predicted-ω:any/c
Return the current result count in result-matrix for the combination of predicted and true/known classifiers.

accessor

( result-matrix-formatted)result-matrix?

Return a formatted version of the result matrix with label data suitable for display or printing.

top
up

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /