Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var KiT_Matrix = kit.Types.AddType(&Matrix{}, MatrixProps)
View Source
var MatrixProps = ki.Props{ "ToolBar": ki.PropSlice{ {"SaveCSV", ki.Props{ "label": "Save CSV...", "icon": "file-save", "desc": "Save CSV-formatted confusion probabilities (Probs)", "Args": ki.PropSlice{ {"CSV File Name", ki.Props{ "ext": ".csv", }}, }, }}, {"OpenCSV", ki.Props{ "label": "Open CSV...", "icon": "file-open", "desc": "Open CSV-formatted confusion probabilities (Probs)", "Args": ki.PropSlice{ {"Weights File Name", ki.Props{ "ext": ".csv", }}, }, }}, }, }
Functions ¶
This section is empty.
Types ¶
type Matrix ¶
type Matrix struct { Prob etensor.Float64 `view:"no-inline" desc:"normalized probability of confusion: Row = ground truth class, Col = actual response for that class."` Sum etensor.Float64 `view:"no-inline" desc:"incremental sums"` N etensor.Float64 `view:"no-inline" desc:"counts per ground truth (rows)"` Vis simat.SimMat `view:"no-inline" desc:"visualization using SimMat"` }
Matrix computes the confusion matrix, with rows representing the ground truth correct class, and columns representing the actual answer produced. Correct answers are along the diagonal.
func (*Matrix) Init ¶
Init initializes the Matrix for given number of classes, and resets the data to zero.
func (*Matrix) Probs ¶
func (cm *Matrix) Probs()
Probs computes the probabilities based on accumulated data
Click to show internal directories.
Click to hide internal directories.