-
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.
- Loading branch information
1 parent
3874410
commit 2821988
Showing
14 changed files
with
173 additions
and
109 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,27 @@ | ||
# 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) | ||
Condition | ||
Error in `adjust_numeric_calibration()`: | ||
! `calibrator` is absent but must be supplied. | ||
|
||
--- | ||
|
||
Code | ||
adjust_numeric_calibration(ctr_reg, "boop") | ||
Condition | ||
Error in `adjust_numeric_calibration()`: | ||
! `calibrator` should be a <cal_regression> object (`?probably::cal_estimate_linear()`), not a string. | ||
! `type` must be one of "linear", "isotonic", or "isotonic_boot", not "boop". | ||
|
||
--- | ||
|
||
Code | ||
adjust_numeric_calibration(ctr_cls, dummy_cls_cal) | ||
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 <cal_binary> object. | ||
! `type` must be one of "logistic", "beta", "isotonic", or "isotonic_boot", not "linear". | ||
|
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.