-
Notifications
You must be signed in to change notification settings - Fork 8
ADA-SVR (2/4) Test for models #101
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
base: main
Are you sure you want to change the base?
Conversation
fix typo errors Co-authored-by: bthirion <[email protected]>
3a51e49
to
8c953e2
Compare
00dcdae
to
8902945
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #101 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 21 21
Lines 923 942 +19
=========================================
+ Hits 923 942 +19 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Since this is about tests, would creating fixtures in the |
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 overall, thx.
estimator.fit(X, y) | ||
beta_hat_svr = estimator.coef_ | ||
|
||
# compare that the coefficiants are the same that the one of SVR |
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.
# compare that the coefficiants are the same that the one of SVR | |
# check that the coefficients are the same as the ones of SVR |
assert np.max(np.abs(beta_hat - beta_hat_svr.T[:, 0])) < 2e-4 | ||
|
||
weights, weights_distribution = permutation_test( | ||
X, y, estimator=estimator, n_permutations=10000, n_jobs=8, seed=42 |
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.
In a test, you probably want to have a much lower number of permutations
This pull request includes a modification of other PR (#74, #73, #99, #100)
This pull request is about the tests for the ada_svr. I added a functional test to complete the unit of test of the functions.