-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[query] lower firth regression (#12816)
CHANGELOG: In Query-on-Batch, `hl.logistic_regression('firth', ...)` is now supported. Forgive me: I cleaned up and unified the look of the (now three) `fit` methods. A few of the sweeping cleanups: 1. num_iter, max_iter, and cur_iter are now n_iterations, max_iterations, and iteration. 2. Pervasive use of broadcasting functions rather than map. 3. `log_lkhd` only evaluated on the last iteration (in particular, its not bound before the `case`) 4. `select` as the last step rather than `drop` (we didn't drop all the unnecessary fields previously). 5. `select_globals` to make sure we only keep the `null_fit`. Major changes in this PR: 1. Add no_crash to triangular_solve 2. Split the epacts tests by type (now easy to run all firth tests with `-k firth`). 3. Firth fitting and test. A straight copy from Scala. I honestly don't understand what this is doing.
- Loading branch information
Showing
7 changed files
with
449 additions
and
196 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
Large diffs are not rendered by default.
Oops, something went wrong.
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.