-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
Codecov Report
@@ 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.
|
There was a problem hiding this 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() |
There was a problem hiding this comment.
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.
tests/test_kruskals.py
Outdated
assert (series.index.values == ind_cols).all() | ||
|
||
def test_direction_on_directional_drivers_analysis(): | ||
""" Test percentage is calculated correctly """ |
There was a problem hiding this comment.
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"
tests/test_kruskals.py
Outdated
@@ -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 """ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Poor test comment
No description provided.