Public methods
Method new()
Creates a new instance of this R6 class.
Usage
PredictionDens$new(
task = NULL,
row_ids = task$row_ids,
pdf = NULL,
cdf = NULL,
distr = NULL,
check = TRUE
)
Arguments
task
(TaskSurv)
Task, used to extract defaults for row_ids
.
row_ids
(integer()
)
Row ids of the predicted observations, i.e. the row ids of the test set.
pdf
(numeric()
)
Numeric vector of estimated probability density function, evaluated at values in test set.
One element for each observation in the test set.
cdf
(numeric()
)
Numeric vector of estimated cumulative distribution function, evaluated at values in test
set. One element for each observation in the test set.
distr
(Distribution)
Distribution from distr6.
The distribution from which pdf
and cdf
are derived.
check
(logical(1)
)
If TRUE
, performs argument checks and predict type conversions.
Method clone()
The objects of this class are cloneable with this method.
Usage
PredictionDens$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.