Description Usage Arguments Details Value
View source: R/conformal_pdf_approach.R
An internal function that create the "S" matrix and "b" vector for the "conformal pdf".
1 | create_S_b_matrix(n, prob_cde, prime = FALSE)
|
n |
number of observations in the calibration set |
prob_cde |
P(y: f(y|x) \in [lambda_{i}, lambda_{i+1}) vector. See details for more information. |
prime |
boolean if we should return S' and b' |
The S matrix is a the upper triangle, where the non-zero values have column information that is P(y: f(y|x) \in [lambda_{i}, lambda_{i+1}) where λ_{i} are the level set ups associated with conformal scores values.
The b vector is just (i-1)/n
list of S matrix and b vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.