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

Expose supervised ID models to GUI #1213

Merged
merged 19 commits into from
Mar 14, 2023
Merged

Expose supervised ID models to GUI #1213

merged 19 commits into from
Mar 14, 2023

Conversation

sheridana
Copy link
Collaborator

Description

Add supervised ID models to GUI

Types of changes

  • Bugfix
  • New feature
  • Refactor / Code style update (no logical changes)
  • Build / CI changes
  • Documentation Update
  • Other (explain)

Does this address any currently open issues?

[list open issues here]

Outside contributors checklist

  • Review the guidelines for contributing to this repository
  • Read and sign the CLA and add yourself to the authors list
  • Make sure you are making a pull request against the develop branch (not main). Also you should start your branch off develop
  • Add tests that prove your fix is effective or that your feature works
  • Add necessary documentation (if appropriate)

Thank you for contributing to SLEAP!

❤️

@codecov
Copy link

codecov bot commented Mar 7, 2023

Codecov Report

Merging #1213 (2abad9a) into develop (5b3b598) will decrease coverage by 0.05%.
The diff coverage is 51.35%.

@@             Coverage Diff             @@
##           develop    #1213      +/-   ##
===========================================
- Coverage    72.36%   72.31%   -0.05%     
===========================================
  Files          132      132              
  Lines        23502    23526      +24     
===========================================
+ Hits         17008    17014       +6     
- Misses        6494     6512      +18     
Impacted Files Coverage Δ
sleap/gui/learning/scopedkeydict.py 90.32% <ø> (ø)
sleap/gui/learning/dialog.py 64.42% <41.93%> (-1.45%) ⬇️
sleap/gui/learning/receptivefield.py 85.85% <100.00%> (-0.15%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sheridana sheridana marked this pull request as ready for review March 9, 2023 00:13
@sheridana sheridana requested review from roomrys and talmo March 9, 2023 00:13
Copy link
Collaborator

@roomrys roomrys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few comments that I will handle quickly, looks great!

Comment on lines 362 to 371
if recent_cfg_info.head_name in ("multi_class_topdown"):
return "top-down-id"
if recent_cfg_info.head_name in ("centroid", "centered_instance"):
return "top-down"
if recent_cfg_info.head_name in ("multi_instance"):
return "bottom-up"
if recent_cfg_info.head_name in ("single_instance"):
return "single"
if recent_cfg_info.head_name in ("multi_class_bottomup"):
return "bottom-up-id"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of these are not tuples (except for the "top-down" check). Thus, if the recent_cfg_info.head_name were "multi_class", then it would be in "multi_class_topdown" and in "multi_class_bottomup". This likely won't be a problem since the recent_cfg_info.head_name is set from only a few options, but we may not be doing the check we thought we were.

sleap/gui/learning/dialog.py Outdated Show resolved Hide resolved
sleap/gui/learning/dialog.py Outdated Show resolved Hide resolved
sleap/config/training_editor_form.yaml Show resolved Hide resolved
@roomrys roomrys changed the title Arlo/supervised id gui Expose supervised ID models to GUI Mar 14, 2023
@roomrys roomrys merged commit 4bd0171 into develop Mar 14, 2023
@roomrys roomrys deleted the arlo/supervised_id_gui branch March 14, 2023 23:05
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