-
Notifications
You must be signed in to change notification settings - Fork 82
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
Feature/refactor relative epsilon #602
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #602 +/- ##
==========================================
- Coverage 88.16% 88.15% -0.01%
==========================================
Files 74 74
Lines 7764 7753 -11
Branches 544 542 -2
==========================================
- Hits 6845 6835 -10
+ Misses 778 777 -1
Partials 141 141
|
change pydocs
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 is really nice.. and finally solves a longstanding ugly bug!!!
LGTM
import jax.numpy as jnp | ||
import jax.tree_util as jtu | ||
|
||
__all__ = ["Epsilon", "DEFAULT_SCALE"] | ||
|
||
#: Scaling applied to statistic (mean/std) of cost to compute default epsilon. | ||
DEFAULT_SCALE = 0.05 |
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.
I think we should move DEFAULT_SCALE
to geometry.py
since this is where it's used? maybe also change its name? I could suggest DEFAULT_EPSILON_SCALE
**kwargs | ||
} | ||
return Epsilon(**kwargs) | ||
def __repr__(self) -> str: |
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.
cool!
cost_fn: a CostFn function between two points in dimension d. | ||
x: Array of shape ``[n, d]``. | ||
y: Array of shape ``[m, d]``. If :obj:`None`, use ``x``. | ||
cost_fn: Cost function between two points in dimension :math:`d`. | ||
batch_size: When ``None``, the cost matrix corresponding to that point cloud |
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.
:obj:None
@marcocuturi could you please update the documentation?
closes #478