-
Notifications
You must be signed in to change notification settings - Fork 19
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
Save mu attribue in GRIDE #68
Conversation
Codecov Report
@@ Coverage Diff @@
## main #68 +/- ##
==========================================
+ Coverage 80.57% 80.61% +0.03%
==========================================
Files 10 10
Lines 1138 1145 +7
==========================================
+ Hits 917 923 +6
- Misses 221 222 +1
Continue to review full report at Codecov.
|
flake8 does not pass because the function is too long. There are too many 'if' conditions. I would ignore this estetic aspect for the moment if the rationale of the new attribute is fine for you |
If we want to ignore it we need to add an exception (see, e.g., here https://flake8.pycqa.org/en/3.1.1/user/ignoring-errors.html). It should be relatively easy, I can do it later if needed |
I added a helper function to compute maximum likelihood with gride, '_compute_id_gride' which is similar to what we do with _compute_id_2NN. In this manner, we solve the issue |
Ok great, if it's ok I will also have a look at the code tonight to see if I can give you further feedback |
This can go for now, but eventually it would be nice to make gride and 2NN more consistent between each other. In this moment they are not, for instance:
I think that eventually (even in another PR) we should make them coherent, meaning that we should create a function |
Yes. But the problem of consistency is not the matter of this PR. These functions have never been consistent so far and for sure sooner or later we should improve the structure of the module. But this was not the purpose of this specific PR |
Ok, then let's move on, I also approve the PR 👍🏼 |
Add option to save mus also in gride (for consistency with TwoNN)