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

[ENH] Ranking for Sieve, refactoring of Sieve, Mosaic and VizRank #1382

Merged
merged 9 commits into from
Jul 1, 2016

Conversation

janezd
Copy link
Contributor

@janezd janezd commented Jun 24, 2016

  • Add VizRank for Sieve diagram.
  • Refactor the ancient methods for drawing the graph.
  • Fix discretization of classes and metas.
  • Partially unrelated: allow specifying the size policy as tuple in calls to gui

Commit 512c35b is a massive clean-up which puts some classes shared across multiple widgets into different utility modules, and puts the general viz rank code into a common base class.

@codecov-io
Copy link

codecov-io commented Jun 24, 2016

Current coverage is 87.64%

Merging #1382 into master will increase coverage by <.01%

@@             master      #1382   diff @@
==========================================
  Files            75         75          
  Lines          7468       7473     +5   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           6545       6550     +5   
  Misses          923        923          
  Partials          0          0          

Sunburst

Powered by Codecov. Last updated by 503fff2...d29cf14

@janezd janezd changed the title [WIP] [ENH] Ranking for Sieve [ENH] Ranking for Sieve Jun 24, 2016
@janezd janezd changed the title [ENH] Ranking for Sieve [WIP] [ENH] Ranking for Sieve Jun 25, 2016
@janezd janezd changed the title [WIP] [ENH] Ranking for Sieve [ENH] Ranking for Sieve, refactoring of Sieve, Mosaic and VizRank Jun 25, 2016
@janezd janezd force-pushed the sieve-rank branch 2 times, most recently from 11aa038 to 512c35b Compare June 25, 2016 18:59
@ajdapretnar ajdapretnar self-assigned this Jun 27, 2016
@janezd janezd force-pushed the sieve-rank branch 2 times, most recently from ba49dda to 0e90d8a Compare July 1, 2016 15:03
Extract OWWidget's methods for progress bars to mix-in class `Orange.widgets.utils.progressbar.ProgressBarMixin`. This simplifies `OWWidget` and also allows other dialogs (e.g. `VizRankDialog`) to use progress bars without being derived from `OWWidget`.

Move `HorizontalGridDelegate` from `OWColor` to `gui` - it was also used in the `OWFile` 's domain editor and now in VizRank.

Move `CanvasText`, `CanvasRectangle` and `ViewWithPress` from `OWMosaic` to `orange.widgets.visualize.utils` since they were used by Sieve and Mosaic (and may also be used elsewhere).

Move the common functionality of Scatter Plot's and Sieve's VizRank to more `VizRankDialog` and `VizRankDialogAttrPair` (module `orange.widgets.visualiza.utils`. The classes are also general enough to also support ranking of other visualizations in the future.

Derive `VizRankDialog` from `QDialog` (with the progress bar mix-in) instead of `OWWidget` with all its balast.

Visually improve VizRankDialog. Remove the uninformative score.

Remove the redundant dictionary `ScaleData.attribute_name_index` since it duplicates the functionality of `ScaleData.data_domain.index`.

Fix the type of argument `buttonType` and the return type in docstring of `gui.button`.

Rename `Orange.widget.utils.getHtmlCompatibleString` to `to_html`.
@astaric astaric merged commit 9e4e5dd into biolab:master Jul 1, 2016
@janezd janezd deleted the sieve-rank branch July 1, 2016 21:17
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.

4 participants