predReliability {predReliability} | R Documentation |
A reliability function
Description
A function used to calculate the reliability of individual predictions given by your model and prediction function with methods described in the paper (Bosnic, Z., & Kononenko, I. (2008) <doi:10.1007/s10489-007-0084-9>). It also allows you to make a correlation test to estimate which reliability estimate is the most accurate for your model.
Usage
predReliability(
data.test,
data.train,
types,
formula,
model.function,
predict.function,
ceval = F,
nThread = 1,
...
)
Arguments
data.test |
a |
data.train |
a |
types |
a |
formula |
a |
model.function |
a function with arguments |
predict.function |
a function with arguments model object |
ceval |
a flag whether a 10-fold correlation test should be made on the requested types (default set to false) |
nThread |
the number |
... |
extra arguments you wish to be passed to your model and prediction function |
References
Bosnic, Z., & Kononenko, I. (2008). Comparison of approaches for estimating reliability of individual regression predictions. Data & Knowledge Engineering, 67(3), 504-516. Bosnic, Z., & Kononenko, I. (2008). Estimation of individual prediction reliability using the local sensitivity analysis. Applied intelligence, 29(3), 187-203. Bosnic, Z., & Kononenko, I. (2009). An overview of advances in reliability estimation of individual predictions in machine learning. Intelligent Data Analysis, 13(2), 385-401.
Examples
estimates <- c("bagv", "cnk", "lcv", "sa")
predReliability(mtcars[1,], mtcars[-1,], estimates, mpg~., rpart::rpart, predict)