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

Directional drivers analysis using Pearson's correlation #4

Merged
merged 4 commits into from
Apr 7, 2017

Conversation

Rambatino
Copy link
Owner

No description provided.

@codecov-io
Copy link

codecov-io commented Apr 7, 2017

Codecov Report

Merging #4 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master       #4   +/-   ##
=======================================
  Coverage   95.65%   95.65%           
=======================================
  Files           1        1           
  Lines          46       46           
=======================================
  Hits           44       44           
  Misses          2        2

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2f8a1c6...fe4f528. Read the comment docs.

Copy link
Collaborator

@xulaus xulaus left a comment

Choose a reason for hiding this comment

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

Just the comments


series = Kruskals.Kruskals(ndarr, arr).driver_score_to_series(True)

assert (series.values < 0).any()
Copy link
Collaborator

Choose a reason for hiding this comment

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

newline at end of file please.

assert (series.index.values == ind_cols).all()

def test_direction_on_directional_drivers_analysis():
""" Test percentage is calculated correctly """
Copy link
Collaborator

Choose a reason for hiding this comment

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

This comment is abiguious as the test is really "is directionality applied"

@@ -79,3 +79,42 @@ def test_series_output():
assert np.array_equal(np.round(series.values, decimals=5), exp_driver_score)
assert series.name == 'score'
assert series.index.name == 'driver'

def test_ivars_sub_into_series():
""" Test percentage is calculated correctly """
Copy link
Collaborator

Choose a reason for hiding this comment

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

Poor test comment

@Rambatino Rambatino merged commit 1b09d25 into master Apr 7, 2017
@Rambatino Rambatino deleted the directional_drivers_analysis branch April 7, 2017 14:42
@Rambatino Rambatino changed the title Directional drivers analysis Directional drivers analysis using Pearson's correlation May 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants