-
Notifications
You must be signed in to change notification settings - Fork 179
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
FIX: incremental estimators tests #1998
FIX: incremental estimators tests #1998
Conversation
/intelci: run |
/intelci: run |
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.
Rather than cast it to numpy for checking dtype, couldn't we just use the dtype test parameter? i.e.
tol = 2e-6 if dtype == np.float32 else 1e-7
?
All asserts require numpy inputs, so make sense convert them to numpy ndarrays. |
agree, this is exactly what I asked in my comments |
/intelci: run |
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.
LGTM, assuming green CI
/intelci: run |
@mergify backport rls/2024.7.0-rls |
✅ Backports have been created
|
* FIX: incremental estimators tests (cherry picked from commit 4fd4568)
* FIX: incremental estimators tests (cherry picked from commit 4fd4568) Co-authored-by: Samir Nasibli <[email protected]>
Description
fixes incremental estimators tests.
Output array should be converted to numpy array before setting tol dependent on the dtype, otherwise the tol settings will not be set. Found on #1861
Checklist to comply with before moving PR from draft:
PR completeness and readability
Testing
Performance