Skip to content

Conversation

@Jamesren64
Copy link

Description

Add instrument-to-instrument similarity metrics (F1, Precision, Recall) to Results.

Pass through instrument_to_instrument_similarities in src/utilities/simplifyApi.js as instrumentSimilarities.
Render InstrumentSimilarities card in src/components/InstrumentSimilarities.js with percent formatting. Show card in src/components/Results.js when data exists.

Dependencies:
Backend must return instrument_to_instrument_similarities with { instrument_1_name, instrument_2_name, precision, recall, f1 }.
No new npm packages.

Fixes # (issue)

#43

Type of change

New feature (non-breaking change which adds functionality)

Testing

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Local end to end test.
test

Test Configuration

  • Library version:
  • OS:
  • Toolchain:

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

@netlify
Copy link

netlify bot commented Sep 20, 2025

Deploy Preview for harmony-staging ready!

Name Link
🔨 Latest commit 009d13d
🔍 Latest deploy log https://app.netlify.com/projects/harmony-staging/deploys/68f1731e77450300080ad846
😎 Deploy Preview https://deploy-preview-54--harmony-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants