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

Owinteractions: new widget and tablemodel #254

Merged
merged 6 commits into from
Nov 23, 2023

Conversation

noahnovsak
Copy link
Contributor

@noahnovsak noahnovsak commented Oct 7, 2022

Description of changes
  • InteractionScorer relocated and fixed main thread being slowed down by numpy.unique. OWInteractions: fix calculation #255
  • RankTableModel and ArrayTableModel added (currently as two separate models).
  • OWInteractions rewritten as it's own widget, no longer extends OWCorrelations.

These changes improve the performance of OWInteractions and present some opportunities for OWCorrelations and OWScatterPlot as well. Currently all three of these widgets can generate models large enough, that QTableModel and subsequently the rest of Orange becomes unresponsive. The idea of the new models is to save the underlying data in an array and let numpy do all the heavy lifting. Additionally improvements have been made to the process of adding items into the model in batches (the current process: generate and add items to the queue one by one, take items out one by one, add them to the model one by one).

Includes
  • Code changes
  • Tests
  • Documentation

@noahnovsak noahnovsak changed the title Owinteraction rewrite Owinteractions: new widget and tablemodel Oct 14, 2022
@markotoplak
Copy link
Member

@noahnovsak, I merged #255 and rebased this one. Do you remember any reason we didn't merge it a year ago?

@noahnovsak
Copy link
Contributor Author

No, I think it's ok for prototypes... It probably needs some work before merging into the main branch though.

@codecov-commenter
Copy link

Codecov Report

Attention: 214 lines in your changes are missing coverage. Please review.

Comparison is base (5ef0d45) 33.92% compared to head (3e8d853) 41.76%.
Report is 16 commits behind head on master.

Files Patch % Lines
orangecontrib/prototypes/widgets/owchatgptbase.py 0.00% 108 Missing ⚠️
orangecontrib/prototypes/widgets/owinteractions.py 81.64% 58 Missing ⚠️
orangecontrib/prototypes/widgets/owchatgpt.py 0.00% 20 Missing ⚠️
...contrib/prototypes/widgets/owchatgptconstructor.py 0.00% 18 Missing ⚠️
orangecontrib/prototypes/ranktablemodel.py 93.06% 7 Missing ⚠️
...rangecontrib/prototypes/widgets/owtexttocolumns.py 93.02% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #254      +/-   ##
==========================================
+ Coverage   33.92%   41.76%   +7.83%     
==========================================
  Files           9       12       +3     
  Lines        1515     1669     +154     
==========================================
+ Hits          514      697     +183     
+ Misses       1001      972      -29     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@markotoplak
Copy link
Member

Hahaha, you got used to different naming schemes! Thank you.

@markotoplak markotoplak merged commit abdcc99 into biolab:master Nov 23, 2023
12 checks passed
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.

None yet

3 participants