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

Add test for consistency plotting; fix plotting for unordered dataset ids #54

Closed
wants to merge 3 commits into from

Conversation

stes
Copy link
Member

@stes stes commented Jul 31, 2023

As noted in #27, when passing non-sorted labels to the consistency plot, the order off values in the confusion matrix does not match the axis labels.

In this PR,

  • we add a test to cebra_sklearn_metrics.consistency_score(...,between="datasets",...) to detect this issue
  • propose a fix

Before merging, it would be good to add additional tests especially for the multi-run (vs. multi-dataset) case. Also useful if @CeliaBenquet could review this remaining comment (https://github.com/AdaptiveMotorControlLab/CEBRA/pull/54/files#r1279777840).

Fix #27

@stes stes added the bug Something isn't working label Jul 31, 2023
@stes stes self-assigned this Jul 31, 2023
@cla-bot cla-bot bot added the CLA signed label Jul 31, 2023
@stes stes mentioned this pull request Jul 31, 2023
2 tasks
Comment on lines -329 to +353
dataset_ids = ["achilles", "buddy", "buddy", "achilles"]
dataset_ids = ["achilles", "buddy", "cicero", "gatsby"]
dataset_ids_runs = ["achilles", "buddy", "buddy", "achilles"]
Copy link
Member Author

Choose a reason for hiding this comment

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

Still TODO: Would be good to double check that the previous format with repeated datasets, ["achilles", "buddy", "buddy", "achilles"] does indeed not make sense when plotting the consistency matrix --- if both this behavior plus #27 should be supported, we need additional internal changes to the plot (e.g., how numbers should be averaged during plotting).

@stes
Copy link
Member Author

stes commented Oct 3, 2023

close in favor of #87 , thanks @CeliaBenquet !

@stes stes closed this Oct 3, 2023
@stes stes deleted the stes/fix-consistency-plot branch October 8, 2023 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CLA signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Label sorting bug in consistency score
3 participants