src.cmfsapy.evaluation package¶
Submodules¶
src.cmfsapy.evaluation.mpe module¶
-
src.cmfsapy.evaluation.mpe.
compute_mpe
(estimates, d, axis=None)¶ Computes the Mean Percentage Error
- Parameters
estimates (np.ndarray) – estimated values
d (np.ndarray) – ground-truth
- Returns
MPE score
- Return type
float, np.ndarray
-
src.cmfsapy.evaluation.mpe.
compute_p_error
(x, intdims, axis=None)¶ Computes the error rate for integer dimension estimates (1-hit rate)
- Parameters
x (int) – the intrinsic dimension of the manifold
of int intdims (numpy.ndarray) – id estimates
axis – axis to compute the mean (default None)
- Returns
error rate
- Return type
float or numpy.ndarray of float
-
src.cmfsapy.evaluation.mpe.
compute_pe
(estimates, d)¶ Computes the Percentage Error
- Parameters
estimates (np.ndarray) – estimated values
d (np.ndarray) – ground-truth
- Returns
MPE score
- Return type
float, np.ndarray