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

Create more Mapper tests, and fix (#227) #228

Merged
merged 34 commits into from
Feb 7, 2020
Merged

Conversation

wreise
Copy link
Collaborator

@wreise wreise commented Jan 24, 2020

Reference Issues/PRs

Fixes tests for mapper [(#177), (#178), (#182), (#241)], and fixes (#227) and (#241).

wreise and others added 18 commits January 24, 2020 15:44
…ts to generation of multinomialdistributions with hypothesis
- Effectively implement right_ranks as the ceiling function (np.ceil has the bad feature that it returns float arrays)
- Revise left_ranks too to better deal with situations in which entries of left_limits are negative. As of now, we would make the corresponding left_rank equal to 0, but this means that the zero-th point is skipped, which I believe is not the ideal behaviour.
Also, opt to subtract 1 from the definition of X_rank for code efficiency
@wreise wreise marked this pull request as ready for review February 4, 2020 12:31
@wreise wreise changed the title [WIP] Mapper tests Mapper tests Feb 4, 2020
@wreise wreise requested a review from ulupo February 6, 2020 08:56
@wreise
Copy link
Collaborator Author

wreise commented Feb 6, 2020

The tests are failing because of check_is_fitted :

gtda/mapper/tests/test_cover.py:209: in test_cubical_fit_A_transform_consistent_with_OneD
    x_cubical = cubical.fit(filter).transform(filter)
gtda/mapper/cover.py:466: in transform
    check_is_fitted(self)

@ulupo
Copy link
Collaborator

ulupo commented Feb 6, 2020

@wreise now fixed -- but let's wait for tests to pass.

@ulupo
Copy link
Collaborator

ulupo commented Feb 6, 2020

This looks great! Aside from the comment above, the only other thing I'd ask is a one-liner description for the tests, especially those with names which may be slightly mysterious to the uninitiated to hypothesis.

gtda/mapper/visualization.py Show resolved Hide resolved
gtda/mapper/tests/test_cluster.py Outdated Show resolved Hide resolved
gtda/mapper/tests/test_cluster.py Outdated Show resolved Hide resolved
gtda/mapper/tests/test_cluster.py Outdated Show resolved Hide resolved
gtda/mapper/tests/test_cluster.py Show resolved Hide resolved
gtda/mapper/tests/test_cover.py Outdated Show resolved Hide resolved
@ulupo
Copy link
Collaborator

ulupo commented Feb 6, 2020

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@wreise
Copy link
Collaborator Author

wreise commented Feb 7, 2020

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@wreise
Copy link
Collaborator Author

wreise commented Feb 7, 2020

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

gtda/mapper/visualization.py Outdated Show resolved Hide resolved
gtda/mapper/tests/test_cover.py Outdated Show resolved Hide resolved
@ulupo ulupo changed the title Mapper tests Create more Mapper tests, and fix (#227) Feb 7, 2020
@ulupo ulupo merged commit 6fa1a58 into giotto-ai:master Feb 7, 2020
@wreise wreise deleted the mapper_tests branch April 18, 2020 09:21
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