-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fit calibrators at
fit.container()
(#12)
- Loading branch information
1 parent
71ed887
commit 071749e
Showing
13 changed files
with
222 additions
and
96 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,36 @@ | ||
# adjustment printing | ||
|
||
Code | ||
ctr_reg %>% adjust_numeric_calibration(dummy_reg_cal) | ||
ctr_reg %>% adjust_numeric_calibration() | ||
Message | ||
-- Container ------------------------------------------------------------------- | ||
A postprocessor with 1 operation: | ||
A regression postprocessor with 1 operation: | ||
* Re-calibrate numeric predictions. | ||
|
||
# errors informatively with bad input | ||
|
||
Code | ||
adjust_numeric_calibration(ctr_reg) | ||
adjust_numeric_calibration(ctr_reg, "boop") | ||
Condition | ||
Error in `adjust_numeric_calibration()`: | ||
! `calibrator` is absent but must be supplied. | ||
! `type` must be one of "linear", "isotonic", or "isotonic_boot", not "boop". | ||
|
||
--- | ||
|
||
Code | ||
adjust_numeric_calibration(ctr_reg, "boop") | ||
container("classification", "binary") %>% adjust_numeric_calibration("linear") | ||
Condition | ||
Error in `adjust_numeric_calibration()`: | ||
! `calibrator` should be a <cal_regression> object (`?probably::cal_estimate_linear()`), not a string. | ||
! A binary container is incompatible with the operation `adjust_numeric_calibration()`. | ||
|
||
--- | ||
|
||
Code | ||
adjust_numeric_calibration(ctr_cls, dummy_cls_cal) | ||
container("regression", "regression") %>% adjust_numeric_calibration("binary") | ||
Condition | ||
Error in `adjust_numeric_calibration()`: | ||
! `calibrator` should be a <cal_regression> object (`?probably::cal_estimate_linear()`), not a <cal_binary> object. | ||
! `type` must be one of "linear", "isotonic", or "isotonic_boot", not "binary". | ||
i Did you mean "linear"? | ||
|
Oops, something went wrong.