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] Correlations: Enhancements and fixes #3660

Merged
merged 4 commits into from
Mar 8, 2019

Conversation

VesnaT
Copy link
Contributor

@VesnaT VesnaT commented Mar 6, 2019

Issue

Implements the last part of #3504.

Description of changes
  • Improve heuristic to return all possible attribute pairs in most promising order, i.e. returning pairs within clusters first, followed by pairs among clusters (starting with closest clusters)
  • Show Need at least two continuous features. and Need at least two instances. messages as warnings
  • Fix feature model to contain only attributes (exclude class)
Includes
  • Code changes
  • Tests
  • Documentation

@VesnaT VesnaT changed the title Correlations: Enhancements and fixes [ENH] Correlations: Enhancements and fixes Mar 6, 2019
@codecov
Copy link

codecov bot commented Mar 6, 2019

Codecov Report

Merging #3660 into master will increase coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #3660      +/-   ##
==========================================
+ Coverage   84.33%   84.35%   +0.01%     
==========================================
  Files         370      370              
  Lines       67896    67940      +44     
==========================================
+ Hits        57263    57309      +46     
+ Misses      10633    10631       -2

Generate all possible attribute pairs, starting with pairs within clusters,
followed by pairs among clusters.
@@ -206,9 +218,11 @@ class Outputs:
correlation_type = Setting(0)

class Information(OWWidget.Information):
removed_cons_feat = Msg("Constant features have been removed.")

class Warning(OWWidget.Warning):
not_enough_vars = Msg("Need at least two continuous features.")
not_enough_inst = Msg("Need at least two instances.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we make these messages proper sentences?

@janezd janezd self-assigned this Mar 7, 2019
instances = None # type: Optional[List]
centroid = None # type: Optional[np.ndarray]


class KMeansCorrelationHeuristic:
"""
Heuristic to obtain the most promising attribute pairs, when there are to
Copy link
Contributor

Choose a reason for hiding this comment

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

to -> too
(not important, skip if you don't make any other, substantial changes)

Orange/widgets/data/owcorrelations.py Show resolved Hide resolved
@janezd janezd merged commit 6bd86e2 into biolab:master Mar 8, 2019
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