accuracy: Accuracy metric

View source: R/utils.R

accuracyR Documentation

Accuracy metric

Description

Compute the accuracy of a fit

Usage

accuracy(reference_m, a)

Arguments

reference_m

the matrix to use as reference

a

the matrix obtained from a fit

Value

A numeric value between 0 and 1 representing the accuracy of the fit, computed as the proportion of correctly identified zero/non-zero entries.


sparsevar documentation built on Feb. 5, 2026, 1:07 a.m.