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))
)

Arguments

result

A musica_result object.

other_result

A second musica_result object.

threshold

threshold for similarity

metric

One of "cosine" for cosine similarity or "jsd" for 1 minus the Jensen-Shannon Divergence. Default "cosine".

result_name

title for plot of first result signatures

other_result_name

title for plot of second result signatures

Value

Returns the comparisons

Examples

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