-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for monomial computation (local evaluation) (#72)
* Changed `predict` and `eval_poly()` to first compute and store all needed monomials, giving the option to return them, or compute their sum afterwards and return then the final polynomial prediction as in the previous version. * Created helper functions inside `eval_poly()` to help with the changes. Also refactored some parts of the code to reduce the need to check special cases with if statements. * Added new tests for the monomials computations, both in `eval_poly()` and in `predict()`. * Updated documentation to reflect new monomial evaluation option * Updated and regenerated vignette 01 to showcase a prediction with monomials.
- Loading branch information
1 parent
5602204
commit ebf15db
Showing
16 changed files
with
574 additions
and
160 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.