Skip to content

Commit

Permalink
fix NOTEs
Browse files Browse the repository at this point in the history
  • Loading branch information
bblodfon committed Jan 6, 2025
1 parent 3cbc8e6 commit 46b4ddd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ Imports:
ggplot2,
mlr3misc (>= 0.7.0),
mlr3pipelines (>= 0.7.0),
mlr3viz,
paradox (>= 1.0.0),
R6,
Rcpp (>= 1.0.4),
Expand All @@ -50,6 +49,7 @@ Suggests:
lgr,
lifecycle,
mlr3learners,
mlr3viz,
pammtools,
param6 (>= 0.2.4),
polspline,
Expand Down
2 changes: 1 addition & 1 deletion R/MeasureSurvICI.R
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ MeasureSurvICI = R6Class("MeasureSurvICI",
pv = self$param_set$values

# time point for calibration
time = pv$time %??% median(times)
time = pv$time %??% stats::median(times)

# get cdf at the specified time point
extend_times_cdf = getFromNamespace("C_Vec_WeightedDiscreteCdf", ns = "distr6")
Expand Down
1 change: 1 addition & 0 deletions R/autoplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ autoplot.PredictionSurv = function(object, type = "calib",
cll_grid = log(-log(1 - cdf_grid))

smoothed_cdf_grid = polspline::phare(q = time, cov = cll_grid, fit = hare_fit)
pred = obs = NULL
data = data.table(pred = cdf_grid, obs = smoothed_cdf_grid)

ggplot(data, aes(x = pred, y = obs)) +
Expand Down
1 change: 1 addition & 0 deletions man/mlr3proba-package.Rd

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

0 comments on commit 46b4ddd

Please sign in to comment.