Compare two result files to find similar signatures
compare_results(
result,
other_result,
threshold = 0.9,
metric = "cosine",
result_name = deparse(substitute(result)),
other_result_name = deparse(substitute(other_result)),
decimals = 2,
same_scale = FALSE
)A musica_result object.
A second musica_result object.
threshold for similarity
One of "cosine" for cosine similarity or "jsd"
for 1 minus the Jensen-Shannon Divergence. Default "cosine".
title for plot of first result signatures
title for plot of second result signatures
Specifies rounding for similarity metric displayed. Default
2.
If TRUE, the scale of the probability for each
signature will be the same. If FALSE, then the scale of the y-axis
will be adjusted for each signature. Default FALSE.
Returns the comparisons
data(res)
compare_results(res, res, threshold = 0.8)
#> cosine x_sig_index y_sig_index x_sig_name y_sig_name
#> 1 1 1 1 Signature1 Signature1
#> 2 1 2 2 Signature2 Signature2
#> 3 1 3 3 Signature3 Signature3