8000 clean test_spd_matrices with parametrization by SaitejaUtpala · Pull Request #1263 · geomstats/geomstats · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

clean test_spd_matrices with parametrization #1263

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

Merged
merged 80 commits into from
Jan 23, 2022

Conversation

SaitejaUtpala
Copy link
Collaborator
@SaitejaUtpala SaitejaUtpala commented Dec 30, 2021

clean test_spd_matrices

@SaitejaUtpala SaitejaUtpala changed the title cleaning spd clean test_spd_matrices Dec 30, 2021
@SaitejaUtpala SaitejaUtpala changed the title clean test_spd_matrices clean test_spd_matrices with parametrization Dec 30, 2021
Copy link
Collaborator
@ninamiolane ninamiolane left a comment

Choose a reason for hiding this comment

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

Fantastic, thank you for this huge effort! Here is a first batch of comments.

Parameters
----------
space : cls
Manifold class that upon which metric is present.
Copy link
Collaborator

Choose a reason for hiding this comment

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

NIT: missing verb?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

does new doc string work? not sure If I completely understand what I mean

Copy link
Collaborator
@ninamiolane ninamiolane left a comment

Choose a reason for hiding this comment

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

Excellent !! Such a relief to have better tests now 🙌 We will finally be able to properly evaluate the performances.

High-level comments:

Otherwise it is perfect (minor comments are inline)! Can't wait to merge!

@ninamiolane
Copy link
Collaborator

Thanks! I'll have a look once the tests pass 🤞

@SaitejaUtpala
Copy link
Collaborator Author

Those are fiber bundles tests.

@ninamiolane
Copy link
Collaborator

Ooooh ok :(

@SaitejaUtpala
Copy link
Collaborator Author
SaitejaUtpala commented Jan 22, 2022

Ooooh ok :(

I am adding some batch data

Copy link
Collaborator
@ninamiolane ninamiolane left a comment

Choose a reason for hiding this comment

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

Thanks for addressing some comments! 🙌

Other comments from the previous code review have not been addressed (e.g. on num_points, n_points, n_samples, num_samples; or on no commented code going to the master branch, deep source is failing on this too; or on batch data): I'll let you have a look? Thanks!


def random_point_and_belongs_data(self):
smoke_data = [
dict(n=1, n_points=1),
Copy link
Collaborator
10000

Choose a reason for hiding this comment

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

Ditto


def differential_gram_belongs_data(self):
ns = [1, 2, 2, 3, 10, 5, 100, 1000]
num_points = [1, 1, 2, 50, 1000, 100, 10, 5]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ditto


def inverse_differential_gram_belongs_data(self):
ns = [1, 2, 2, 3, 10, 15, 100, 1000]
num_points = [1, 1, 2, 200, 1000, 100, 10, 5]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ditto

def test_random_point_and_belongs(self, n, n_points):
space_n = self.space(n)
self.assertAllClose(
gs.all(space_n.belongs(space_n.random_point(n_points))), True
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ditto


def random_point_data(self):
smoke_data = [
dict(n=1, num_points=1),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ditto

@SaitejaUtpala
Copy link
Collaborator Author

Professor @ninamiolane, you can check it now (hopefully I didn't miss anything) and tests that are failing are from fiber bundles methods

Copy link
Collaborator
@ninamiolane ninamiolane left a comment

Choose a reason for hiding this comment

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

Fantastic, thank you!! 🎉

@ninamiolane ninamiolane merged commit 0b05113 into geomstats:master Jan 23, 2022
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
0