-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add shape checking utilities for coefficients of precomputed kernel regressors * Modify instantiation and fit call of KPCovR to accept pre-fitted regressors as in PCovR * Update KPCovR tests to be compatible with new regressor usage * Update PCovR example notebook to be compatible with new regressor usage * Reorganize regressor usage to pull kernel parameters directly from the regressor; use None as the default argument for the regressor * Pull alpha from the KPCovR regressor * Make regressor default argument None, assign default within __init__ * Change inversions to use least squares with singular value cutoff based on tol instead of the regularization * Compute Yhat directly from the dual coefficients * Move regressor checking to occur immediately * Add more details about pre-fitted regressors to PCovR and KPCovR documentation * Use KPCovR tolerance in matrix inversion instead of regularization * Add tests for KPCovR to cover the pre-fitted regressors * Add PCovR test to check for regressor modifications * Move default regressor assignment to fit and accept regressor params * Reorganize KPCovR regressor infrastructure * Make PCovR example compatible with new KPCovR regressor infrastructure * Add PCovR test for None regressor * Modify KPCovR tests for compatibility with new regressor infrastructure * Add KPCovR test for None regressor * Fix KPCovR docstring example * Consolidate regressor checking * Simplify tests for pre-fitted regressors * Negate KPCovR score according to sklearn guidelines
- Loading branch information
1 parent
9a438e8
commit b4e06ae
Showing
7 changed files
with
377 additions
and
113 deletions.
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
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.