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

Unit tests for Allow precomputed #104

Merged
merged 3 commits into from
Jul 20, 2018

Conversation

deargle
Copy link
Collaborator

@deargle deargle commented Jul 18, 2018

add two new unit tests for lens and map: precomputed and distance_matrix

  • distance_matrix checks that the kmapper correctly creates a distance
    matrix before projecting the lens (but only for euclidean for now)
  • precomputed tests that the map function feeds the correct square cube
    information from the X argument if argument precompute=True is passed.
    Expected to be used in conjunction with cluster function
    metric='precomputed', e.g. with DBSCAN

* distance_matrix checks that the kmapper correctly creates a distance
matrix before projecting the lens (but only for euclidean for now)
* `precomputed` tests that the map function feeds the correct cube
information from the X argument if argument `precompute=True` is passed.
Expected to be used in conjunction with cluster function
`metric='precomputed'`
@pep8speaks
Copy link
Contributor

pep8speaks commented Jul 18, 2018

Hello @deargle, Thank you for updating !

Line 44:51: W291 trailing whitespace
Line 50:9: E303 too many blank lines (2)
Line 117:17: E722 do not use bare except'
Line 121:9: E722 do not use bare except'
Line 272:59: W291 trailing whitespace
Line 344:1: W293 blank line contains whitespace
Line 374:1: W293 blank line contains whitespace
Line 455:60: W291 trailing whitespace
Line 488:77: W291 trailing whitespace

Comment last updated on July 18, 2018 at 07:08 Hours UTC

@codecov-io
Copy link

codecov-io commented Jul 18, 2018

Codecov Report

Merging #104 into master will increase coverage by 0.43%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #104      +/-   ##
==========================================
+ Coverage   87.15%   87.58%   +0.43%     
==========================================
  Files           6        6              
  Lines         436      435       -1     
  Branches       94       93       -1     
==========================================
+ Hits          380      381       +1     
+ Misses         37       36       -1     
+ Partials       19       18       -1
Impacted Files Coverage Δ
kmapper/kmapper.py 83.61% <ø> (+0.76%) ⬆️

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 27f7167...177a435. Read the comment docs.

@deargle
Copy link
Collaborator Author

deargle commented Jul 18, 2018

See #88 and #87

@sauln sauln merged commit 21f3899 into scikit-tda:master Jul 20, 2018
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

4 participants