Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New section for Algorithms and Category Maps #683

Open
mihow opened this issue Jan 21, 2025 · 1 comment · May be fixed by #785
Open

New section for Algorithms and Category Maps #683

mihow opened this issue Jan 21, 2025 · 1 comment · May be fixed by #785
Assignees
Labels

Comments

@mihow
Copy link
Collaborator

mihow commented Jan 21, 2025

Summary

Add a new tab to the project details page for viewing details about the available algorithms. Link to the algorithm detail view where the algorithm names currently appear in the app.

Detailed Description

When viewing the species predictions for an Occurrence in the identifications tab, you can see the name of the algorithm used, but you cannot not click on the name or see any details about it.

Furthermore, it is important to see the list of species that each model was trained to identify.

These details will be available after #632 and #635 are merged.

The list of species is often called the list of labels, or the category map. This can be quite long for our classifiers, from 1,000 - 30,000 entries so we need a way to handle that in the UI. We can link to the JSON response as a first step (the endpoint).

Implementation Details

Relevant endpoints:
http://localhost:8000/api/v2/ml/labels/
http://localhost:8000/api/v2/ml/algorithms/

Related Issues

#632
#635

Additional Context

Image

Image

@vanessavmac
Copy link
Collaborator

vanessavmac commented Mar 17, 2025

Changes to make

Note: for category map, use MinimalNestedModelSerializer to show id and link inside algorithm response ami/base/serializers.py

  • algorithms overview: just show id of category map (with hyperlink to api), remove URI column
  • algorithms details: category link (with hyperlink to api), show URI (with hyperlink)
  • all hyperlinks show external link icon (Similar to "raw" in occurrences)
  • also add version to the details

And then just link the occurrence's algorithm name to the algorithms overview page

@vanessavmac vanessavmac linked a pull request Mar 22, 2025 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants