-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
subfit
s: Fix an error thrown if newdata
contains only a single
level of a `factor`-coerced `character` variable. Also fix a bug causing a re-ordering of the levels of a `factor` in `newdata` (compared to that `factor` in the original dataset) not to get recognized by `predict.subfit()`, which in turn causes `x %*% rbind(alpha, beta)` to be incorrect in such cases. Also fix an error thrown by `fit_glm_ridge_callback()` in case of unused levels of a `factor`, namely: ``` warning: solve(): system is singular; attempting approx solution Error: solve(): solution not found ```
- Loading branch information
Showing
2 changed files
with
33 additions
and
15 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