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
Refactor Tests #91
base: gallego-posada/1.0.0-alpha
Are you sure you want to change the base?
Refactor Tests #91
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## gallego-posada/1.0.0-alpha #91 +/- ##
=============================================================
Coverage ? 80.17%
=============================================================
Files ? 28
Lines ? 938
Branches ? 0
=============================================================
Hits ? 752
Misses ? 186
Partials ? 0 ☔ View full report in Codecov by Sentry. |
def compute_violations(self, x: torch.Tensor) -> cooper.CMPState: | ||
""" | ||
Computes the constraint violations for the given parameters. | ||
""" |
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.
Add a comment that sampling for strict violation and violation is different
tests/test_pipeline.py
Outdated
self.device = device | ||
|
||
def test_convergence(self, extrapolation, alternation_type): | ||
x = torch.nn.Parameter(torch.ones(5, device=self.device)) |
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.
start from random init
0b32859
to
c49f65d
Compare
No description provided.