-
-
Notifications
You must be signed in to change notification settings - Fork 657
Test fbeta available device #3335 #3360
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
vfdev-5
merged 30 commits into
pytorch:master
from
BanzaiTokyo:test_fbeta_available_device
Apr 16, 2025
Merged
Changes from 27 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
e51550d
adds available_device to test_entropy.py #3335
BanzaiTokyo 9410e68
fix test_case producing large values
BanzaiTokyo 158498c
adds available_device to test_fbeta.py #3335
BanzaiTokyo 819576d
pass available_device to Precision and Recall
BanzaiTokyo cc10d87
convert y_true and y_pred to PyTorch tensors
BanzaiTokyo 2cd05f5
Merge branch 'master' into test_fbeta_available_device
BanzaiTokyo 13761c9
correctly transfer tensors to device
BanzaiTokyo 3da78a9
adds available_device to test_fbeta.py #3335
BanzaiTokyo b382daa
pass available_device to Precision and Recall
BanzaiTokyo 7839ca8
convert y_true and y_pred to PyTorch tensors
BanzaiTokyo 41a8297
changes the fixture for Precision and Recall
BanzaiTokyo ced2c25
Merge remote-tracking branch 'origin/test_fbeta_available_device' int…
BanzaiTokyo 7e1aff9
removes check for used device
BanzaiTokyo 8c0a97d
Merge branch 'master' into test_fbeta_available_device
vfdev-5 b4b4375
takes into account PR comments
BanzaiTokyo 4440d0e
updates the Non checks in the Fbeta constructor
BanzaiTokyo be54733
updates the error check for received an invalid combination of arguments
BanzaiTokyo 2b8e22d
Merge branch 'master' into test_fbeta_available_device
BanzaiTokyo 0e551c8
apply PR comments
BanzaiTokyo 221ecd7
Merge branch 'master' into test_fbeta_available_device
BanzaiTokyo 27c55b3
Merge branch 'master' into test_fbeta_available_device
BanzaiTokyo 3c85f9d
adds missed optional in typing
BanzaiTokyo 2ede234
conversion to float32
BanzaiTokyo 68b9e72
fixes typing in fbeta.py
BanzaiTokyo d2431e9
adds check for: If precision argument is provided, device should be None
BanzaiTokyo 0a069f8
pytest.approx istead of np.testing.assert_allclose
BanzaiTokyo ce980ee
Merge branch 'master' into test_fbeta_available_device
BanzaiTokyo 078ff60
explicitely detach y_true and y_pred to cpu before passing them to fb…
BanzaiTokyo 0e14526
removes detach
BanzaiTokyo 4449c20
If recall argument is provided, device should be None
BanzaiTokyo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.