-
Notifications
You must be signed in to change notification settings - Fork 43
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
Optimize CDF Calculation and Convert NumPy Arrays to Tensors in Benchmark #399
Closed
Closed
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
49c4a92
modifiy cdf/other calculations to work with torch in APEsychMixin class
yalsaffar 3155a8f
update ModelProtocol class with torch.Tensor
yalsaffar efa3d0c
update MultipleLSETestCase.unvectorized_p_below_threshold with torch.…
yalsaffar 1b2609f
adding workflow for this branch
yalsaffar 27721c0
matching the evaluate as it returns floats for now
yalsaffar 50abc99
matching the evaluate as it returns floats for now 2
yalsaffar cf73773
remove workflow for this branch
yalsaffar c5f2d5d
updating f_threshold to work with icdf instead of norm.ppf
yalsaffar dcfb0e8
remove workflow for this branch
yalsaffar 45db03b
update f_threshold with icdf
yalsaffar 3bb4e8b
update p() in problem and remove casting tensors in test_benchmark.py
yalsaffar d3eaeba
fix smaller bugs related to tensor opreations
yalsaffar fcd719f
fix smaller bugs related to tensor opreations in sample_y method
yalsaffar b3c5088
remove workflow for the branch
yalsaffar 5d0521e
refactoring evaluate and f_true in Problem class to work with Tensors
yalsaffar 220fbb2
fix linter issue in evaluate method
yalsaffar 0dc76fb
fix redundant use of torch.tensor() in f_threshold method
yalsaffar 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 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.
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.
Why is this cloned and detached? Also why is it converted to tensor if we already assume that self.thresholds will be a tensor?
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.
You're right, there's no need to convert it again, and cloning and detaching are also unnecessary. I'll remove those, test it, and commit the changes.