Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ inst/doc
.RData
.DS_Store
docs
tests/testthat/Rplots.pdf
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Config/testthat/edition: 3
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.2
RoxygenNote: 7.3.3
Collate:
'bound_prediction.R'
'cal-apply-binary.R'
Expand All @@ -72,7 +72,7 @@ Collate:
'cal-estimate-isotonic.R'
'cal-estimate-linear.R'
'cal-estimate-logistic.R'
'cal-estimate-multinom.R'
'cal-estimate-multinomial.R'
'cal-estimate-utils.R'
'cal-estimate-none.R'
'cal-pkg-check.R'
Expand All @@ -84,8 +84,8 @@ Collate:
'cal-utils.R'
'cal-validate.R'
'class-pred.R'
'conformal_infer.R'
'conformal_infer_cv.R'
'conformal_infer_full.R'
'conformal_infer_quantile.R'
'conformal_infer_split.R'
'data.R'
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions man/cal_estimate_multinomial.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/control_conformal_full.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/int_conformal_cv.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/int_conformal_full.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/int_conformal_quantile.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/int_conformal_split.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions man/predict.int_conformal_full.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/probably-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/required_pkgs.cal_object.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions man/required_pkgs.int_conformal_cv.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions tests/testthat/_snaps/cal-estimate-isotonic.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,3 +191,20 @@
x This function does not work with grouped data frames.
i Apply `dplyr::ungroup()` and use the `.by` argument.

# Non-default names used for estimate columns

Code
cal_estimate_isotonic(new_segment, Class, c(good, poor))
Message

-- Probability Calibration
Method: Isotonic regression calibration
Type: Binary
Source class: Data Frame
Data points: 1,010
Unique Predicted Values: 78
Truth variable: `Class`
Estimate variables:
`good` ==> good
`poor` ==> poor

35 changes: 0 additions & 35 deletions tests/testthat/_snaps/cal-estimate-linear.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,38 +128,3 @@
Warning:
Too few unique observations for spline-based calibrator. Setting `smooth = FALSE`.

---

Code
sl_gam <- cal_estimate_linear(boosting_predictions_oob, outcome, smooth = TRUE)
Condition
Warning:
Too few unique observations for spline-based calibrator. Setting `smooth = FALSE`.

---

Code
sl_gam <- cal_estimate_linear(boosting_predictions_oob, outcome, .by = id,
smooth = TRUE)
Condition
Warning:
Too few unique observations for spline-based calibrator. Setting `smooth = FALSE`.
Warning:
Too few unique observations for spline-based calibrator. Setting `smooth = FALSE`.
Warning:
Too few unique observations for spline-based calibrator. Setting `smooth = FALSE`.
Warning:
Too few unique observations for spline-based calibrator. Setting `smooth = FALSE`.
Warning:
Too few unique observations for spline-based calibrator. Setting `smooth = FALSE`.
Warning:
Too few unique observations for spline-based calibrator. Setting `smooth = FALSE`.
Warning:
Too few unique observations for spline-based calibrator. Setting `smooth = FALSE`.
Warning:
Too few unique observations for spline-based calibrator. Setting `smooth = FALSE`.
Warning:
Too few unique observations for spline-based calibrator. Setting `smooth = FALSE`.
Warning:
Too few unique observations for spline-based calibrator. Setting `smooth = FALSE`.

Loading